Skip to content

Commit ea5068b

Browse files
authored
10x dxf export speed (#1773)
1 parent cafbf7c commit ea5068b

File tree

1 file changed

+1
-2
lines changed
  • cadquery/occ_impl/exporters

1 file changed

+1
-2
lines changed

cadquery/occ_impl/exporters/dxf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ def add_shape(self, shape: Union[WorkplaneLike, Shape], layer: str = "") -> Self
197197
dxfattribs=general_attributes
198198
).apply_construction_tool(entity)
199199

200-
zoom.extents(self.msp)
201-
202200
return self
203201

204202
@staticmethod
@@ -394,4 +392,5 @@ def exportDXF(
394392
for s in w:
395393
dxf.add_shape(s)
396394

395+
zoom.extents(dxf.msp)
397396
dxf.document.saveas(fname)

0 commit comments

Comments
 (0)