개정판 5eed47ec
dev issue #000 : fix
Change-Id: I28aa63f9ea9711e0f9e15bb411c9dd653fc25b53
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
1248 | 1248 |
# TODO: detect flange |
1249 | 1249 |
# detect flange |
1250 | 1250 |
for sym in searchedSymbolList: |
1251 |
Worker.detectFlangeOnPid(sym, app_doc_data.activeDrawing.image_origin)
|
|
1251 |
worker.detectFlangeOnPid(sym, app_doc_data.activeDrawing.image_origin)
|
|
1252 | 1252 |
|
1253 | 1253 |
# remove line has not connected item |
1254 | 1254 |
try: |
... | ... | |
1833 | 1833 |
|
1834 | 1834 |
@staticmethod |
1835 | 1835 |
def detectFlangeOnPid(symbol, img): |
1836 |
|
|
1837 |
pt = [float(x) for x in symbol.getSp()] |
|
1836 | 1838 |
connPts = [] |
1837 | 1839 |
if symbol.getConnectionPoint() is not None and symbol.getConnectionPoint() != '': |
1838 | 1840 |
for param in symbol.getConnectionPoint().split('/'): |
... | ... | |
1845 | 1847 |
tokens) == 4 else None) |
1846 | 1848 |
|
1847 | 1849 |
for point in connPts: |
1848 |
a = point
|
|
1850 |
worker.displayLog.emit(MessageType.Error, "gi")
|
|
1849 | 1851 |
continue |
1850 | 1852 |
|
1851 | 1853 |
return None |
내보내기 Unified diff