개정판 29c65a8e
cad symbol test
Change-Id: I2e79163f561cd53a8c3aa3ccefd279b84ecc24e7
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
940 | 940 |
origin = convert_to_image_coords((float(blk_ref_node.attrib['X']), float(blk_ref_node.attrib['Y'])), |
941 | 941 |
[scale_x, scale_y], offsets) |
942 | 942 |
angle = round(float(blk_ref_node.attrib['Angle']), 2) |
943 |
flip = float(blk_ref_node.attrib['ScaleFactors'].replace('(', '').replace(')', '').split(',')[0]) |
|
944 |
flip = 1 if flip < 0 else 0 |
|
943 | 945 |
|
944 | 946 |
"""check if maxtents or minextents attribute exists""" |
945 | 947 |
if 'MaxExtents' not in blk_ref_node.attrib or 'MinExtents' not in blk_ref_node.attrib: |
... | ... | |
982 | 984 |
connPts=symbol.parse_connection_pts(origin), parentSymbol=None, childSymbol=None, |
983 | 985 |
hasInstrumentLabel=False, dbUid=uid) |
984 | 986 |
item.converted = True |
987 |
item.flip = flip |
|
985 | 988 |
|
986 | 989 |
app_doc_data = AppDocData.instance() |
987 | 990 |
for area in app_doc_data.getAreaList(): |
내보내기 Unified diff