개정판 d77440db
issue #387: add loda data option
Change-Id: I928e83625c00c3e1522a063c8ebc92ce985e9283
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
736 | 736 |
db_items.extend([item for item in items if type(item) is QEngineeringLineNoTextItem]) |
737 | 737 |
db_items.extend([line for line in appDocData.tracerLineNos if type(line) is QEngineeringTrimLineNoTextItem]) |
738 | 738 |
# db_items.extend(titleBlockItems) |
739 |
configs = appDocData.getConfigs('Data Load', 'Xml First')
|
|
740 |
if configs and int(configs[0].value) is 1: |
|
739 |
configs = appDocData.getConfigs('Data Save', 'Unknown Xml Only')
|
|
740 |
if configs and int(configs[0].value) is -1:
|
|
741 | 741 |
db_items.extend([item for item in items if type(item) is QEngineeringUnknownItem]) |
742 | 742 |
|
743 | 743 |
''' |
... | ... | |
1424 | 1424 |
# Load data |
1425 | 1425 |
path = os.path.join(app_doc_data.getCurrentProject().getTempPath(), app_doc_data.imgName + '.xml') |
1426 | 1426 |
configs = app_doc_data.getConfigs('Data Load', 'Xml First') |
1427 |
if configs and int(configs[0].value) is 1 and os.path.isfile(path):
|
|
1427 |
if configs and int(configs[0].value) >= 1 and os.path.isfile(path):
|
|
1428 | 1428 |
self.load_recognition_result_from_xml(path) |
1429 |
else:
|
|
1429 |
elif configs and int(configs[0].value) <= 1:
|
|
1430 | 1430 |
self.load_drawing(app_doc_data.activeDrawing) |
1431 | 1431 |
|
1432 | 1432 |
self.display_number_of_items() |
내보내기 Unified diff