Commit cb487d92 authored by sumpfralle's avatar sumpfralle

some more fixes for EngraveCutter


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@371 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 06a4d18a
...@@ -626,8 +626,8 @@ class ProjectGui: ...@@ -626,8 +626,8 @@ class ProjectGui:
dropcutter_active = False dropcutter_active = False
else: else:
# engraving # engraving
if not get_obj("PathAccumulator").get_active(): if not get_obj("SimpleCutter").get_active():
get_obj("PathAccumulator").set_active(True) get_obj("SimpleCutter").set_active(True)
all_controls = ("PathDirectionX", "PathDirectionY", "PathDirectionXY", all_controls = ("PathDirectionX", "PathDirectionY", "PathDirectionXY",
"SimpleCutter", "PolygonCutter", "ContourCutter", "SimpleCutter", "PolygonCutter", "ContourCutter",
"PathAccumulator", "ZigZagCutter", "MaxStepDownControl", "PathAccumulator", "ZigZagCutter", "MaxStepDownControl",
...@@ -640,7 +640,7 @@ class ProjectGui: ...@@ -640,7 +640,7 @@ class ProjectGui:
"PathDirectionX", "PathDirectionY", "PathDirectionXY", "PathDirectionX", "PathDirectionY", "PathDirectionXY",
"MaxStepDownControl", "MaterialAllowanceControl", "MaxStepDownControl", "MaterialAllowanceControl",
"OverlapPercentControl"), "OverlapPercentControl"),
"EngraveCutter": ("PathAccumulator", "MaxStepDownControl"), "EngraveCutter": ("SimpleCutter", "MaxStepDownControl"),
} }
for one_control in all_controls: for one_control in all_controls:
get_obj(one_control).set_sensitive(one_control in active_controls[cutter_name]) get_obj(one_control).set_sensitive(one_control in active_controls[cutter_name])
...@@ -1317,7 +1317,7 @@ class ProjectGui: ...@@ -1317,7 +1317,7 @@ class ProjectGui:
settings["name"] = self.gui.get_object("ProcessSettingName").get_text() settings["name"] = self.gui.get_object("ProcessSettingName").get_text()
# path generator # path generator
def get_path_generator(): def get_path_generator():
for name in ("DropCutter", "PushCutter"): for name in ("DropCutter", "PushCutter", "EngraveCutter"):
if self.gui.get_object(name).get_active(): if self.gui.get_object(name).get_active():
return name return name
settings["path_generator"] = get_path_generator() settings["path_generator"] = get_path_generator()
...@@ -1695,7 +1695,7 @@ class ProjectGui: ...@@ -1695,7 +1695,7 @@ class ProjectGui:
support_grid_thickness = None support_grid_thickness = None
# run the toolpath generation # run the toolpath generation
toolpath = pycam.Toolpath.Generator.generate_toolpath(self.model, toolpath = pycam.Toolpath.Generator.generate_toolpath(self.model,
tool_dict, bounds=bounds, tool_settings=tool_dict, bounds=bounds,
direction=process_settings["path_direction"], direction=process_settings["path_direction"],
path_generator=process_settings["path_generator"], path_generator=process_settings["path_generator"],
path_postprocessor=process_settings["path_postprocessor"], path_postprocessor=process_settings["path_postprocessor"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment