summaryrefslogtreecommitdiff
path: root/gerberex/dxf.py
diff options
context:
space:
mode:
authorHiroshi Murayama <opiopan@gmail.com>2019-09-30 18:52:17 +0900
committerHiroshi Murayama <opiopan@gmail.com>2019-09-30 18:52:17 +0900
commitd7a069324222bb8f69adc9b1c815fc9f3f6a29d6 (patch)
tree0b98a748d8d4e57b2b8ecf59a63963563e4949c8 /gerberex/dxf.py
parent242dc2ae173659a47c694c7423b62125aeb6c9a6 (diff)
downloadgerbonara-d7a069324222bb8f69adc9b1c815fc9f3f6a29d6.tar.gz
gerbonara-d7a069324222bb8f69adc9b1c815fc9f3f6a29d6.tar.bz2
gerbonara-d7a069324222bb8f69adc9b1c815fc9f3f6a29d6.zip
fix a issue that coordinate normalization for excellon is imperfect
Diffstat (limited to 'gerberex/dxf.py')
-rw-r--r--gerberex/dxf.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gerberex/dxf.py b/gerberex/dxf.py
index eca246c..00b7695 100644
--- a/gerberex/dxf.py
+++ b/gerberex/dxf.py
@@ -475,9 +475,8 @@ class DxfFile(CamFile):
self.statements.pitch = value
def write(self, filename=None, filetype=FT_RX274X):
- if self.settings.notation != 'absolute':
- raise Exception('DXF file\'s notation must be absolute ')
-
+ self.settings.notation = 'absolute'
+ self.settings.zeros = 'trailing'
filename = filename if filename is not None else self.filename
with open(filename, 'w') as f:
if filetype == self.FT_RX274X: