- replaced the testing if instance of FlatCAMObj with testing the obj.kind attribute
- removed the import of the whole FlatCAMApp file only for the usage of GracefulException - remove the import of FlatCAMApp and used alternate ways - optimized the imports in some files - moved the Bookmarksmanager and ToolDB classes into their own files - solved some bugs that were not so visible in the Editors and HPGL parser - split the FlatCAMObj file into multiple files located in the flatcamObjects folder and renamed the contained classes with names more suggestive - updated the Google Translation for the German language
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import collections
|
||||
from tclCommands.TclCommand import TclCommandSignaled
|
||||
from FlatCAMObj import FlatCAMGeometry, FlatCAMGerber, FlatCAMExcellon
|
||||
|
||||
from shapely.geometry import Point
|
||||
import shapely.affinity as affinity
|
||||
@@ -89,9 +88,7 @@ class TclCommandAlignDrill(TclCommandSignaled):
|
||||
if obj is None:
|
||||
return "Object not found: %s" % name
|
||||
|
||||
if not isinstance(obj, FlatCAMGeometry) and \
|
||||
not isinstance(obj, FlatCAMGerber) and \
|
||||
not isinstance(obj, FlatCAMExcellon):
|
||||
if obj.kind != "geometry" and obj.kind != 'gerber' and obj.kind != 'excellon':
|
||||
return "ERROR: Only Gerber, Geometry and Excellon objects can be used."
|
||||
|
||||
# Axis
|
||||
|
||||
Reference in New Issue
Block a user