- added the Gerber code as source for the panelized object in Panelize Tool

- whenever a Gerber file is deleted, the mark_shapes objects are deleted also
This commit is contained in:
Marius Stanciu
2019-09-11 04:54:30 +03:00
committed by Marius
parent a348bc8738
commit 91cad9c57d
5 changed files with 52 additions and 24 deletions

View File

@@ -1519,7 +1519,12 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
def export_gerber(self, whole, fract, g_zeros='L', factor=1):
"""
Creates a Gerber file content to be exported to a file.
:param whole: how many digits in the whole part of coordinates
:param fract: how many decimals in coordinates
:param g_zeros: type of the zero suppression used: LZ or TZ; string
:param factor: factor to be applied onto the Gerber coordinates
:return: Gerber_code
"""
log.debug("FlatCAMGerber.export_gerber() --> Generating the Gerber code from the selected Gerber file")
@@ -1670,7 +1675,6 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
for geo_elem in self.apertures[apid]['geometry']:
if 'follow' in geo_elem:
geo = geo_elem['follow']
print(geo)
if not geo.is_empty:
if isinstance(geo, Point):
if g_zeros == 'T':