개정판 06023b5a
issue #000: apply line offset
Change-Id: I9b1f576bb2d5df8db2c3196764b5e5ce6afc96ca
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
1072 | 1072 |
try: |
1073 | 1073 |
scale_x = max([id2_bbox[2] / autocad_bbox[2], id2_bbox[3] / autocad_bbox[3]]) if self.ui.doubleSpinBox.value() < 1 else self.ui.doubleSpinBox.value() |
1074 | 1074 |
scale_y = max([id2_bbox[2] / autocad_bbox[2], id2_bbox[3] / autocad_bbox[3]]) if self.ui.doubleSpinBox_2.value() < 1 else self.ui.doubleSpinBox_2.value() |
1075 |
offsets = [id2_bbox[0] - autocad_bbox[0] * scale_x, (id2_bbox[1] + id2_bbox[3]) - autocad_bbox[1] * scale_y]
|
|
1075 |
offsets = [id2_bbox[0] + self.ui.spinBoxX.value() - autocad_bbox[0] * scale_x, (id2_bbox[1] + id2_bbox[3]) + self.ui.spinBoxY.value() - autocad_bbox[1] * scale_y]
|
|
1076 | 1076 |
#offsets = [self.ui.spinBoxX.value(), self.drawing_height + self.ui.spinBoxX.value()] |
1077 | 1077 |
|
1078 | 1078 |
pts = [] |
내보내기 Unified diff