- optimized the FlatCAMGerber.clear_plot_apertures() method
This commit is contained in:
parent
367c23fa29
commit
c00f30ef65
|
@ -1809,18 +1809,25 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
|
||||||
:param aperture: string; aperture for which to clear the mark shapes
|
:param aperture: string; aperture for which to clear the mark shapes
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
try:
|
|
||||||
|
if self.mark_shapes:
|
||||||
if aperture == 'all':
|
if aperture == 'all':
|
||||||
for apid in list(self.apertures.keys()):
|
for apid in list(self.apertures.keys()):
|
||||||
if self.app.is_legacy is True:
|
try:
|
||||||
self.mark_shapes[apid].clear(update=False)
|
if self.app.is_legacy is True:
|
||||||
else:
|
self.mark_shapes[apid].clear(update=False)
|
||||||
self.mark_shapes[apid].clear(update=True)
|
else:
|
||||||
|
self.mark_shapes[apid].clear(update=True)
|
||||||
|
except Exception as e:
|
||||||
|
log.debug("FlatCAMGerber.clear_plot_apertures() 'all' --> %s" % str(e))
|
||||||
else:
|
else:
|
||||||
self.mark_shapes[aperture].clear(update=True)
|
try:
|
||||||
except Exception as e:
|
if self.app.is_legacy is True:
|
||||||
log.debug("FlatCAMGerber.clear_plot_apertures() --> %s" % str(e))
|
self.mark_shapes[aperture].clear(update=False)
|
||||||
|
else:
|
||||||
|
self.mark_shapes[aperture].clear(update=True)
|
||||||
|
except Exception as e:
|
||||||
|
log.debug("FlatCAMGerber.clear_plot_apertures() 'aperture' --> %s" % str(e))
|
||||||
|
|
||||||
def clear_mark_all(self):
|
def clear_mark_all(self):
|
||||||
self.ui.mark_all_cb.set_value(False)
|
self.ui.mark_all_cb.set_value(False)
|
||||||
|
|
|
@ -15,6 +15,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
- changed the Scale Entry in Object UI to FCEntry() GUI element in order to allow expressions to be entered. E.g: 1/25.4
|
- changed the Scale Entry in Object UI to FCEntry() GUI element in order to allow expressions to be entered. E.g: 1/25.4
|
||||||
- some small changes in the Scale button handler in FlatCAMObj() class
|
- some small changes in the Scale button handler in FlatCAMObj() class
|
||||||
- added option to save objects as PDF files in File -> Save menu
|
- added option to save objects as PDF files in File -> Save menu
|
||||||
|
- optimized the FlatCAMGerber.clear_plot_apertures() method
|
||||||
|
|
||||||
11.12.2019
|
11.12.2019
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue