- 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:
Marius Stanciu
2019-03-29 02:13:20 +02:00
parent ecc2c90f2a
commit e0417b034b
4 changed files with 99 additions and 1 deletions

View File

@@ -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():