개정판 11063820
issue #000: connect to process line can be connline
Change-Id: Ice6aa7463fa70db0b566a467bbcbbd88dc263606
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
200 | 200 |
lineno.conns.clear() |
201 | 201 |
minDist = None |
202 | 202 |
startLine = None |
203 |
for line in [line for line in lineno.runs[0].items if type(line) is QEngineeringLineItem and (line._lineType == 'Primary' or line._lineType == 'Secondary')]: |
|
203 |
for line in [line for line in lineno.runs[0].items if type(line) is QEngineeringLineItem and (line._lineType == 'Primary' or line._lineType == 'Secondary' or line._lineType == 'Connect to Process')]:
|
|
204 | 204 |
dist = line.distanceTo((lineno.center().x(), lineno.center().y())) |
205 | 205 |
if (minDist is None) or (dist < minDist): |
206 | 206 |
minDist = dist |
내보내기 Unified diff