개정판 c146ef30
issue #503: fix typo, add title block props each drawing"
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
762 | 762 |
@date 2018.11.09 |
763 | 763 |
''' |
764 | 764 |
try: |
765 |
for titleBlockProp in titleBlockProps: |
|
766 |
titleBlockProp[1] = self.imgName + '!@!' + titleBlockProp[1] |
|
767 | 765 |
originTitleBlockProps = self.getTitleBlockProperties() |
768 | 766 |
deletedTitleBlockProps = [] |
769 | 767 |
for originTitleBlockProp in originTitleBlockProps: |
... | ... | |
806 | 804 |
@date 2018.11.09 |
807 | 805 |
''' |
808 | 806 |
res = None |
809 |
if True:#self._titleBlockProperties is None:
|
|
807 |
if self._titleBlockProperties is None: |
|
810 | 808 |
try: |
811 | 809 |
self._titleBlockProperties = [] |
812 | 810 | |
... | ... | |
820 | 818 |
cursor.execute(sql) |
821 | 819 |
rows = cursor.fetchall() |
822 | 820 |
for row in rows: |
823 |
if row[1].split('!@!')[0] != self.imgName: |
|
824 |
break |
|
825 |
else: |
|
826 |
attr = [] |
|
827 |
attr.append(row[0]) # uid |
|
828 |
attr.append(row[1].split('!@!')[1]) # name |
|
829 |
attr.append(row[2]) # area |
|
830 |
self._titleBlockProperties.append(attr) |
|
821 |
attr = [] |
|
822 |
attr.append(row[0]) # uid |
|
823 |
attr.append(row[1]) # name |
|
824 |
attr.append(row[2]) # area |
|
825 |
self._titleBlockProperties.append(attr) |
|
831 | 826 |
|
832 | 827 |
res = self._titleBlockProperties |
833 | 828 |
# Catch the exception |
DTI_PID/DTI_PID/ConfigurationAreaDialog.py | ||
---|---|---|
571 | 571 |
# update title block area |
572 | 572 |
titleBlockProps = [] |
573 | 573 |
for row in range(self.ui.tableWidgetTitleBlockArea.rowCount()): |
574 |
self.ui.tableWidgetTitleBlockArea.item(row, 2).text() |
|
574 | 575 |
if self.ui.tableWidgetTitleBlockArea.item(row, 1).text() != '': |
575 | 576 |
titleBlockProps.append([self.ui.tableWidgetTitleBlockArea.item(row, 0).text(), self.ui.tableWidgetTitleBlockArea.item(row, 1).text(), self.ui.tableWidgetTitleBlockArea.item(row, 2).text()]) |
576 | 577 |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1677 | 1677 |
approx = cv2.approxPolyDP(contour, epsilon, True) |
1678 | 1678 |
approx = [pt[0] for pt in approx] |
1679 | 1679 |
item = QEngineeringUnknownItem(approx) |
1680 |
item.area = 'Drawing'
|
|
1680 |
item.ara = 'Drawing' |
|
1681 | 1681 |
diffItems.append(item) |
1682 | 1682 |
# up to here |
1683 | 1683 |
내보내기 Unified diff