- modified Gerber parser to copy the follow_geometry in the self.apertures
- modified the Properties Tool to show the number of elements in the follow_geometry for each aperture - modified the copy functions to copy the follow_geometry and also the apertures if it's possible (only for Gerber objects)
This commit is contained in:
@@ -178,6 +178,12 @@ class Properties(FlatCAMTool):
|
||||
if obj.apertures[ap]['solid_geometry']:
|
||||
elems = len(obj.apertures[ap]['solid_geometry'])
|
||||
temp_ap['solid_geometry'] = '%s Polygons' % str(elems)
|
||||
try:
|
||||
if obj.apertures[ap]['follow_geometry']:
|
||||
elems = len(obj.apertures[ap]['follow_geometry'])
|
||||
temp_ap['follow_geometry'] = '%s Polygons' % str(elems)
|
||||
except KeyError:
|
||||
pass
|
||||
self.addChild(apertures, [str(ap), str(temp_ap)], True)
|
||||
elif obj.kind.lower() == 'excellon':
|
||||
for tool, value in obj.tools.items():
|
||||
|
||||
Reference in New Issue
Block a user