개정판 e6df76a8
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] |
|
765 | 767 |
originTitleBlockProps = self.getTitleBlockProperties() |
766 | 768 |
deletedTitleBlockProps = [] |
767 | 769 |
for originTitleBlockProp in originTitleBlockProps: |
... | ... | |
804 | 806 |
@date 2018.11.09 |
805 | 807 |
''' |
806 | 808 |
res = None |
807 |
if self._titleBlockProperties is None: |
|
809 |
if True:#self._titleBlockProperties is None:
|
|
808 | 810 |
try: |
809 | 811 |
self._titleBlockProperties = [] |
810 | 812 |
|
... | ... | |
818 | 820 |
cursor.execute(sql) |
819 | 821 |
rows = cursor.fetchall() |
820 | 822 |
for row in rows: |
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) |
|
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) |
|
826 | 831 |
|
827 | 832 |
res = self._titleBlockProperties |
828 | 833 |
# 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() |
|
575 | 574 |
if self.ui.tableWidgetTitleBlockArea.item(row, 1).text() != '': |
576 | 575 |
titleBlockProps.append([self.ui.tableWidgetTitleBlockArea.item(row, 0).text(), self.ui.tableWidgetTitleBlockArea.item(row, 1).text(), self.ui.tableWidgetTitleBlockArea.item(row, 2).text()]) |
577 | 576 |
|
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.ara = 'Drawing' |
|
1680 |
item.area = 'Drawing'
|
|
1681 | 1681 |
diffItems.append(item) |
1682 | 1682 |
# up to here |
1683 | 1683 |
|
내보내기 Unified diff