diff --git a/src/Mod/Path/PathScripts/PathContour.py b/src/Mod/Path/PathScripts/PathContour.py index fedef35959..c5b4db72fa 100644 --- a/src/Mod/Path/PathScripts/PathContour.py +++ b/src/Mod/Path/PathScripts/PathContour.py @@ -125,7 +125,9 @@ class ObjectContour: @waiting_effects def _buildPathArea(self, obj, baseobject, start=None): PathLog.track() + #Path.Area.setDefaultParams(LogLevel=0) profile = Path.Area() + #profile.setDefaultParams(LogLevel=3) profile.setPlane(Part.makeCircle(10)) profile.add(baseobject) @@ -138,7 +140,8 @@ class ObjectContour: profileparams['Offset'] = self.radius+obj.OffsetExtra.Value profile.setParams(**profileparams) - PathLog.debug("About to profile with params: {}".format(profileparams)) + # PathLog.debug("About to profile with params: {}".format(profileparams)) + PathLog.debug("About to profile with params: {}".format(profile.getParams())) depthparams = depth_params( clearance_height=obj.ClearanceHeight.Value, @@ -167,8 +170,8 @@ class ObjectContour: if obj.UseStartPoint is True and obj.StartPoint is not None: params['start'] = obj.StartPoint - PathLog.debug("Generating Path with params: {}".format(params)) pp = Path.fromShapes(**params) + PathLog.debug("Generating Path with params: {}".format(params)) PathLog.debug(pp) return pp @@ -197,7 +200,7 @@ class ObjectContour: commandlist.append(Path.Command("(" + obj.Label + ")")) - if not obj.UseComp: + if obj.UseComp: commandlist.append(Path.Command("(Compensated Tool Path. Diameter: " + str(self.radius * 2) + ")")) else: commandlist.append(Path.Command("(Uncompensated Tool Path)")) diff --git a/src/Mod/Path/PathScripts/PathMillFace.py b/src/Mod/Path/PathScripts/PathMillFace.py index edd9631237..a9f9bbb55c 100644 --- a/src/Mod/Path/PathScripts/PathMillFace.py +++ b/src/Mod/Path/PathScripts/PathMillFace.py @@ -35,6 +35,7 @@ from PathScripts.PathUtils import waiting_effects LOG_MODULE = 'PathMillFace' PathLog.setLevel(PathLog.Level.INFO, LOG_MODULE) PathLog.trackModule() +FreeCAD.setLogLevel('Path.Area',0) FreeCADGui = None if FreeCAD.GuiUp: diff --git a/src/Mod/Path/PathScripts/PathUtils.py b/src/Mod/Path/PathScripts/PathUtils.py index b72b76ef8b..f2e2457072 100644 --- a/src/Mod/Path/PathScripts/PathUtils.py +++ b/src/Mod/Path/PathScripts/PathUtils.py @@ -39,7 +39,7 @@ from PySide import QtGui LOG_MODULE = 'PathUtils' PathLog.setLevel(PathLog.Level.INFO, LOG_MODULE) # PathLog.trackModule('PathUtils') - +FreeCAD.setLogLevel('Path.Area',0) def waiting_effects(function): def new_function(*args, **kwargs):