개정판 c78c68e3
fixed an error that can't load line type from xml
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
934 | 934 |
|
935 | 935 |
startPoint = [float(x) for x in node.find('STARTPOINT').text.split(',')] |
936 | 936 |
endPoint = [float(x) for x in node.find('ENDPOINT').text.split(',')] |
937 |
lineType = node.find('TYPE').text if node.find('TYPE') else 'Primary' |
|
938 | 937 |
|
939 | 938 |
item = QEngineeringLineItem(vertices=[startPoint, endPoint]) |
940 |
item.lineType = lineType
|
|
939 |
item.lineType = node.find('TYPE').text if node.find('TYPE') is not None else 'Primary'
|
|
941 | 940 |
item.uid = uid |
942 | 941 |
|
943 | 942 |
connectors = node.find('CONNECTORS') |
내보내기 Unified diff