From bd24577184e44f29d6b11baa950dda1bf28e21fe Mon Sep 17 00:00:00 2001 From: Ian Abreu Date: Fri, 4 Jul 2025 11:10:43 -0400 Subject: [PATCH 1/2] initial fix --- src/Mod/CAM/Path/Post/scripts/fanuc_post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/CAM/Path/Post/scripts/fanuc_post.py b/src/Mod/CAM/Path/Post/scripts/fanuc_post.py index b2e4488a0c..aa8aa09ad3 100644 --- a/src/Mod/CAM/Path/Post/scripts/fanuc_post.py +++ b/src/Mod/CAM/Path/Post/scripts/fanuc_post.py @@ -409,7 +409,7 @@ def parse(pathobj): # if it's a tap, we rigid tap, so don't start the spindle yet... if command == "M03" or command == "M3": - if pathobj.Tool.ToolType == "Tap": + if pathobj.ToolController.Tool.ShapeID.lower() == "tap": tapSpeed = int(pathobj.SpindleSpeed) continue @@ -417,7 +417,7 @@ def parse(pathobj): if command == "G81" or command == "G83": if ( hasattr(pathobj, "ToolController") - and pathobj.ToolController.Tool.ToolType == "Tap" + and pathobj.ToolController.Tool.ShapeID.lower() == "tap" ): command = "G84" out += linenumber() + "G95\n" From 05d9eeded25bb820fb660450519093c5f8fcae85 Mon Sep 17 00:00:00 2001 From: Ian Abreu Date: Fri, 4 Jul 2025 11:30:46 -0400 Subject: [PATCH 2/2] correcting to use Tool vs. ToolController --- src/Mod/CAM/Path/Post/scripts/fanuc_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/CAM/Path/Post/scripts/fanuc_post.py b/src/Mod/CAM/Path/Post/scripts/fanuc_post.py index aa8aa09ad3..d60d3e7407 100644 --- a/src/Mod/CAM/Path/Post/scripts/fanuc_post.py +++ b/src/Mod/CAM/Path/Post/scripts/fanuc_post.py @@ -409,7 +409,7 @@ def parse(pathobj): # if it's a tap, we rigid tap, so don't start the spindle yet... if command == "M03" or command == "M3": - if pathobj.ToolController.Tool.ShapeID.lower() == "tap": + if pathobj.Tool.ShapeID.lower() == "tap": tapSpeed = int(pathobj.SpindleSpeed) continue