- updated the Panelize Tool to save the source code for the panelized Excellon objects so it can be saved from the Save project tab context menu entry
- updated the Panelize Tool to save the source code for the panelized Geometry objects as DXF file
This commit is contained in:
20
camlib.py
20
camlib.py
@@ -1101,6 +1101,7 @@ class Geometry(object):
|
||||
# Parse into list of shapely objects
|
||||
dxf = ezdxf.readfile(filename)
|
||||
geos = getdxfgeo(dxf)
|
||||
|
||||
# trying to optimize the resulting geometry by merging contiguous lines
|
||||
geos = linemerge(geos)
|
||||
|
||||
@@ -1116,6 +1117,25 @@ class Geometry(object):
|
||||
else: # It's shapely geometry
|
||||
self.solid_geometry = [self.solid_geometry, geos]
|
||||
|
||||
tooldia = float(self.app.defaults["geometry_cnctooldia"])
|
||||
tooldia = float('%.*f' % (self.decimals, tooldia))
|
||||
|
||||
new_data = {k: v for k, v in self.options.items()}
|
||||
|
||||
self.tools.update({
|
||||
1: {
|
||||
'tooldia': tooldia,
|
||||
'offset': 'Path',
|
||||
'offset_value': 0.0,
|
||||
'type': _('Rough'),
|
||||
'tool_type': 'C1',
|
||||
'data': deepcopy(new_data),
|
||||
'solid_geometry': self.solid_geometry
|
||||
}
|
||||
})
|
||||
|
||||
self.tools[1]['data']['name'] = self.options['name']
|
||||
|
||||
# commented until this function is ready
|
||||
# geos_text = getdxftext(dxf, object_type, units=units)
|
||||
# if geos_text is not None:
|
||||
|
||||
Reference in New Issue
Block a user