프로젝트

일반

사용자정보

개정판 f488d56f

IDf488d56f9333a6b5a32dd4eb267c349ae302c282
상위 587e8b33
하위 d2a31514, acf92f86

백흠경이(가) 약 6년 전에 추가함

revised issue #587: change line property type

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringLineNoTextItem.py
267 267

  
268 268
            docData = AppDocData.instance()
269 269
            attrs = self.getAttributes()
270
            attrs = attrs.items()
270
            #attrs = attrs.items()
271 271
            for index in range(len(lineColumnList)):
272 272
                dataList.append('')
273 273

  
274 274
            dataList[20] = docData.imgName
275 275

  
276
            for attr in attrs:
277
                if type(attr) is not UserInputAttribute:
278
                    lineProp = docData.getLinePropertiesByUID(attr[0])
276
            for key in attrs.keys():
277
                if type(key) is not UserInputAttribute:
278
                    lineProp = docData.getLinePropertiesByUID(key.UID)
279 279
                    if lineProp:
280
                        attrName = lineProp[0].attribute.upper().replace(' ','')
280
                        attrName = lineProp[0].Attribute.upper().replace(' ','')
281 281
                    else:
282
                        attrName = attr.UID.upper().replace(' ','')
283
                    data = attr.Attribute if attr.Attribute is not None else ''
282
                        attrName = key.UID.upper().replace(' ','')
283
                    data = key.Attribute if key.Attribute is not None else ''
284 284
                    if attrName == 'NOMINALDIAMETER':
285 285
                        dataList[1] = data
286 286
                    elif attrName == 'FLUIDCODE':
......
301 301
                    elif attrName == '':
302 302
                        pass
303 303
                else:
304
                    typeUID = attr.Attribute
305
                    value = attr.text
306
                    lineAttr = docData.getLinePropertiesByUID(typeUID)
304
                    typeUID = key.Attribute
305
                    value = key.text
306
                    lineAttr = docData.getLinePropertiesByUID(key.UD)
307 307

  
308 308
                    for index in range(len(lineColumnList)):
309 309
                        if lineColumnList[index] == lineAttr[0].Attribute:

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)