개정판 85c4aeca
issue #000: revive trimline
Change-Id: Ifa18757e2f6e06132db34fa73f7f800349de4be0
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
294 | 294 |
if updateProgress: updateProgress.emit(maxValue) |
295 | 295 |
|
296 | 296 |
### make trim lines |
297 |
""" |
|
298 | 297 |
updateProgress.emit(-1) # reset progressbar |
299 | 298 |
displayMessage.emit('Unknown line Topology Construction') |
300 | 299 |
orphanLines = [line for line in self._lines if line.owner is None] |
... | ... | |
307 | 306 |
orphanLines[0].owner = trimLineNo |
308 | 307 |
orphanLines[0].linkedItem = trimLineNo |
309 | 308 |
|
310 |
connectedItems = self.findPrimaryLines(trimLineNo)
|
|
309 |
connectedItems = self.find_primary_lines(trimLineNo)
|
|
311 | 310 |
for item in connectedItems: |
312 | 311 |
if item in orphanLines: |
313 | 312 |
orphanLines.remove(item) |
314 | 313 |
updateProgress.emit(maxValue) |
315 | 314 |
|
316 |
self.findSecondaryLines(orphanLines)
|
|
315 |
self.find_secondary_lines(orphanLines)
|
|
317 | 316 |
for item in orphanLines[:]: |
318 | 317 |
if item.owner is not None: |
319 | 318 |
orphanLines.remove(item) |
320 | 319 |
updateProgress.emit(maxValue) |
321 | 320 |
|
322 | 321 |
docData.tracerLineNos.append(trimLineNo) |
323 |
""" |
|
322 |
|
|
324 | 323 |
if updateProgress: updateProgress.emit(maxValue) |
325 | 324 |
except Exception as ex: |
326 | 325 |
from App import App |
내보내기 Unified diff