개정판 c4ae5e29
dev issue #563: edit conns to connectors
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
70 | 70 |
foundCount += 1 |
71 | 71 |
connectedItems = self.findConnectedObjects(line, toler=10) |
72 | 72 |
# set connection object |
73 |
for idx in range(len(line.conns)): |
|
74 |
if line.conns[idx] is None: line.conns[idx] = matches[0]
|
|
73 |
for idx in range(len(line.connectors)):
|
|
74 |
if line.connectors[idx].connectedItem is None: line.connectors[idx].connectedItem = matches[0]
|
|
75 | 75 |
# up to here |
76 | 76 |
for item in connectedItems: item.owner = matches[0].owner # set item's owner |
77 | 77 |
DTI_PID/DTI_PID/Shapes/QEngineeringLineNoTextItem.py | ||
---|---|---|
222 | 222 |
while len(pool) > 0: |
223 | 223 |
it = pool.pop() |
224 | 224 |
visited.append(it) |
225 |
for conn in it.conns:
|
|
226 |
if (conn is not None) and (conn not in visited): pool.append(conn)
|
|
225 |
for connector in it.connectors:
|
|
226 |
if (connector.connectedItem is not None) and (connector.connectedItem not in visited): pool.append(connector.connectedItem)
|
|
227 | 227 |
except Exception as ex: |
228 | 228 |
print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
229 | 229 |
내보내기 Unified diff