개정판 76c99a20
cad symbol regi
Change-Id: If296fccfc7107e2d27c688a02c1f23fca06f4dca
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
858 | 858 |
symbols[node[0]] = node |
859 | 859 |
|
860 | 860 |
dialog = QSymbolRegiDataListDialog(self, image, symbols) |
861 |
dialog.show() |
|
861 |
create = dialog.showDialog() |
|
862 |
if create: |
|
863 |
App.mainWnd().symbolTreeWidget.initSymbolTreeView() |
|
862 | 864 |
|
863 | 865 |
''' |
864 | 866 |
for key, value in symbols.items(): |
... | ... | |
872 | 874 |
if reply == QMessageBox.Yes: |
873 | 875 |
break |
874 | 876 |
''' |
875 |
|
|
876 |
#App.mainWnd().symbolTreeWidget.initSymbolTreeView() |
|
877 | 877 |
|
878 | 878 |
except Exception as ex: |
879 | 879 |
from App import App |
... | ... | |
1365 | 1365 |
item = QEngineeringLineItem(vertices=[start, end], thickness=5) |
1366 | 1366 |
|
1367 | 1367 |
# import lines which is horizontal or vertical |
1368 |
angle = math.degrees(item.angle()) |
|
1369 |
if not ((-5 < angle < 5) or (85 < angle < 95) or (175 < angle < 185) or (355 < angle < 365)): |
|
1370 |
continue |
|
1368 |
#angle = math.degrees(item.angle())
|
|
1369 |
#if not ((-5 < angle < 5) or (85 < angle < 95) or (175 < angle < 185) or (355 < angle < 365)):
|
|
1370 |
# continue
|
|
1371 | 1371 |
|
1372 | 1372 |
item.area = 'Drawing' |
1373 | 1373 |
|
DTI_PID/DTI_PID/SymbolRegiDataListDialog.py | ||
---|---|---|
124 | 124 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
125 | 125 |
sys.exc_info()[-1].tb_lineno) |
126 | 126 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
127 |
|
|
128 |
|
|
129 |
def showDialog(self): |
|
130 |
self.show() |
|
131 |
self.exec_() |
|
132 |
|
|
133 |
return self.isAccepted |
내보내기 Unified diff