Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

macro command, checking toolpath is cutter compensation is on

1 REPLY 1
SOLVED
Reply
Message 1 of 2
t_dueber
220 Views, 1 Reply

macro command, checking toolpath is cutter compensation is on

I need a little macro to loop through drilling toolpaths (only profile and champfer) and check if cutter compensation is on.

The macro should give a message box with all toolpath where compensation is on.

can anybody help me?

 

t_dueber_0-1710134080217.png

t_dueber_1-1710134124991.png

 

 

Labels (1)
1 REPLY 1
Message 2 of 2
icse
in reply to: t_dueber

try this:

 

 

string $msg = ""
foreach $tp in filter(folder('toolpath'),'this.Strategy == "drill" and this.Drill.Type == "profile" and this.Drill.DepthType == "chamfer" and this.CNCCutterCompensation.Active') {
	$msg = $msg + $tp.Name + CRLF
}

message info $msg

 

Tags (1)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report