개정판 02bb7251
issue #000: 0309
Change-Id: I67119a7849141edebdcbc28bec34acc16420631b
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
551 | 551 |
tracer.execute(worker.display_message, worker.updateProgress) |
552 | 552 |
# up to here |
553 | 553 |
|
554 |
QApplication.processEvents() |
|
555 | 554 |
# connect attribute |
556 | 555 |
worker.display_message.emit('Connecting Attribute...') |
556 |
QApplication.processEvents() |
|
557 | 557 |
texts = [item for item in worker.scene.items() if issubclass(type(item), QEngineeringTextItem)] |
558 | 558 |
for symbol in symbols: |
559 | 559 |
try: |
... | ... | |
643 | 643 |
|
644 | 644 |
worker.updateProgress.emit(tracer.maxValue) |
645 | 645 |
|
646 |
QApplication.processEvents() |
|
647 | 646 |
# trace special item |
648 |
worker.display_message.emit('Find line for special item...') |
|
647 |
worker.display_message.emit('Finding line for special item...') |
|
648 |
QApplication.processEvents() |
|
649 | 649 |
tracer = SpecialItemTracer([item for item in worker.scene.items() if |
650 | 650 |
(type(item) is SymbolSvgItem or type(item) is QEngineeringTextItem) and |
651 | 651 |
item.special_item_type], lines) |
652 | 652 |
tracer.execute(worker.display_message, worker.updateProgress) |
653 | 653 |
# up to here |
654 | 654 |
|
655 |
QApplication.processEvents() |
|
656 | 655 |
''' sort run flow order ''' |
656 |
worker.display_message.emit('Sorting Lines...') |
|
657 |
QApplication.processEvents() |
|
657 | 658 |
sort_run_flow(worker) |
658 | 659 |
|
659 | 660 |
QApplication.processEvents() |
minorTools/fileChecker.py | ||
---|---|---|
1 | 1 |
import os |
2 | 2 |
|
3 |
pngPath = "E:\Projects\CPChem\drawings"
|
|
4 |
pdfPath = os.path.join("E:\Projects\CPChem", "aa")
|
|
3 |
pngPath = "W:\ID2_Project\POSCO\drawings"
|
|
4 |
pdfPath = os.path.join("W:\ID2_Project\POSCO\drawings", "Native")
|
|
5 | 5 |
pngList = os.listdir(pngPath) |
6 | 6 |
pdfList = os.listdir(pdfPath) |
7 | 7 |
|
minorTools/xmlTextSearcher.py | ||
---|---|---|
3 | 3 |
def finder(): |
4 | 4 |
print("finder start") |
5 | 5 |
|
6 |
targetText = ['>SI<', '>RV<']
|
|
6 |
targetText = ['<NAME>BLIND FLANGE</NAME>']
|
|
7 | 7 |
path = 'W:\ID2_Project\POSCO\Temp' |
8 | 8 |
|
9 | 9 |
print("target : " + str(len(targetText))) |
... | ... | |
45 | 45 |
def changer(): |
46 | 46 |
print("changer start") |
47 | 47 |
|
48 |
originText = '<VALUE>ILO</VALUE>'
|
|
49 |
newText = '<VALUE>LO</VALUE>'
|
|
50 |
path = 'W:\ID2_Project\REB\Temp'
|
|
48 |
originText = '150814'
|
|
49 |
newText = '150B14'
|
|
50 |
path = 'W:\ID2_Project\POSCO\Flange_fix'
|
|
51 | 51 |
|
52 | 52 |
print("origin : " + originText) |
53 | 53 |
print("new : " + newText) |
내보내기 Unified diff