summaryrefslogtreecommitdiff
path: root/gerberex/composition.py
diff options
context:
space:
mode:
authorHiroshi Murayama <opiopan@gmail.com>2019-08-17 23:38:30 +0900
committerHiroshi Murayama <opiopan@gmail.com>2019-08-17 23:38:30 +0900
commit22f4c8a3f5bdce243908f3787216344b200902df (patch)
treec1d1dfb8dbf72141e716d9e0c99b3d719df0b9a5 /gerberex/composition.py
parent4c7aef6a8215758e8b91b5ad118f45694d842472 (diff)
downloadgerbonara-22f4c8a3f5bdce243908f3787216344b200902df.tar.gz
gerbonara-22f4c8a3f5bdce243908f3787216344b200902df.tar.bz2
gerbonara-22f4c8a3f5bdce243908f3787216344b200902df.zip
router mode and G85 slot in excellon file is supported
Diffstat (limited to 'gerberex/composition.py')
-rw-r--r--gerberex/composition.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/gerberex/composition.py b/gerberex/composition.py
index 29725ba..7f691f5 100644
--- a/gerberex/composition.py
+++ b/gerberex/composition.py
@@ -150,10 +150,7 @@ class DrillComposition(Composition):
yield ToolSelectionStmt(t.number).to_excellon(self.settings)
for h in self.hits:
if h.tool.number == t.number:
- if type(h) == DrillSlot:
- yield SlotStmt(*h.start, *h.end).to_excellon(self.settings)
- elif type(h) == DrillHit:
- yield CoordinateStmt(*h.position).to_excellon(self.settings)
+ yield h.to_excellon(self.settings)
for num, statement in self.dxf_statements:
if num == t.number:
yield statement.to_excellon(self.settings)