개정판 33bbee7d
revert cad text
Change-Id: If932948224a81d5abff375b5ab831cf4d2e69a4e
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
1138 | 1138 |
"""up to here""" |
1139 | 1139 |
|
1140 | 1140 |
"""add text, line and symbol from autocad file to id2 xml file""" |
1141 |
if 'Text' in will_be_converted_items: # text for attrdef |
|
1142 |
for record in autocad_xml_root.iter('AcDbText'): |
|
1143 |
if record.attrib['Layer'] not in exclude_layers: |
|
1144 |
node = self.text_to_xml(record) |
|
1145 |
if node: |
|
1146 |
textInfo.append(node) |
|
1141 |
#if 'Text' in will_be_converted_items: # text for attrdef
|
|
1142 |
# for record in autocad_xml_root.iter('AcDbText'):
|
|
1143 |
# if record.attrib['Layer'] not in exclude_layers:
|
|
1144 |
# node = self.text_to_xml(record)
|
|
1145 |
# if node:
|
|
1146 |
# textInfo.append(node)
|
|
1147 | 1147 |
|
1148 | 1148 |
for blk_tbl_record in autocad_xml_root.iter('AcDbBlockTableRecord'): |
1149 | 1149 |
if blk_tbl_record.attrib['Name'].upper() != '*Model_Space'.upper(): |
내보내기 Unified diff