개정판 87726616
issue #663: fix connector scene point
Change-Id: I49bb0ad5dd3f107681b405392ef1796c8c0cebc0
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
229 | 229 |
|
230 | 230 |
connectedItems = self.find_primary_lines(trimLineNo) |
231 | 231 |
for item in connectedItems: |
232 |
if item in orphanLines:
|
|
233 |
orphanLines.remove(item)
|
|
232 |
if item in orphans: |
|
233 |
orphans.remove(item) |
|
234 | 234 |
updateProgress.emit(maxValue) |
235 | 235 |
|
236 | 236 |
self.find_secondary_lines(orphans) |
237 |
for item in orphans[:]:
|
|
237 |
for item in orphans: |
|
238 | 238 |
if item.owner is not None: |
239 | 239 |
orphans.remove(item) |
240 | 240 |
updateProgress.emit(maxValue) |
... | ... | |
699 | 699 |
for lineNo in lineNos + docdata.tracerLineNos: |
700 | 700 |
lineNo.update_flow_mark(position, length) |
701 | 701 |
|
702 |
# sort run flow order |
|
703 |
|
|
702 | 704 |
# trace special item |
703 | 705 |
worker.displayMessage.emit('Find line for special item...') |
704 | 706 |
tracer = SpecialItemTracer([item for item in worker.graphicsView.scene.items() if (type(item) is SymbolSvgItem or type(item) is QEngineeringTextItem) and item.special_item_type], lines) |
DTI_PID/DTI_PID/Shapes/EngineeringConnectorItem.py | ||
---|---|---|
547 | 547 |
center = self.boundingRect().center() |
548 | 548 |
connectPointNode.text = str(center.x()) + ',' + str(center.y()) |
549 | 549 |
sceneConnectPointNode = Element('SCENECONNECTPOINT') |
550 |
center = self.sceneBoundingRect().center()
|
|
551 |
sceneConnectPointNode.text = str(center.x()) + ',' + str(center.y())
|
|
550 |
center = [self.sceneBoundingRect().center().x(), self.sceneBoundingRect().center().y()] if self.scene() else self.sceneConnectPoint
|
|
551 |
sceneConnectPointNode.text = str(center[0]) + ',' + str(center[1])
|
|
552 | 552 |
|
553 | 553 |
node.append(connectedItemNode) |
554 | 554 |
node.append(connectPointNode) |
minorTools/xmlTextSearcher.py | ||
---|---|---|
3 | 3 |
def finder(): |
4 | 4 |
print("finder start") |
5 | 5 |
|
6 |
targetText = 'BLEED RING'
|
|
7 |
path = 'X:\CPChem\Temp'
|
|
6 |
targetText = 'UP,Diaphragm Actuator'
|
|
7 |
path = 'C:\id2_project\Lotte_Line\Temp'
|
|
8 | 8 |
|
9 | 9 |
print("target : " + targetText) |
10 | 10 |
print("path : " + path) |
내보내기 Unified diff