개정판 e46d5948
add text area auto set
Change-Id: I24b4000bf1c4e2fa55475244dc2a4c33951ee2e4
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
1088 | 1088 |
@return: None |
1089 | 1089 |
""" |
1090 | 1090 |
from App import App |
1091 |
from Area import Area |
|
1091 | 1092 |
import XmlGenerator as xg |
1092 | 1093 |
|
1093 | 1094 |
if not self._dwgs: |
... | ... | |
1104 | 1105 |
|
1105 | 1106 |
self.text_scale = self.ui.doubleSpinBoxScale.value() |
1106 | 1107 |
self.areas = app_doc_data.getAreaList() |
1108 |
title_area_list = app_doc_data.getTitleBlockProperties() |
|
1109 |
title_list = [] |
|
1110 |
if title_area_list: |
|
1111 |
for title_area in title_area_list: |
|
1112 |
area = Area(title_area[0]) |
|
1113 |
area.parse(title_area[2]) |
|
1114 |
title_list.append(area) |
|
1115 |
self.areas.extend(title_list) |
|
1107 | 1116 |
|
1108 | 1117 |
"""get exclude layers mapping""" |
1109 | 1118 |
exclude_layers = [] |
내보내기 Unified diff