개정판 f488d56f
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