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 for changing skim feedrate

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
nguyenthinhvt95
725 Views, 3 Replies

Macro for changing skim feedrate

Hi all you guys

I have a macro for changing the skim feed rate if the tool type is the drill.

But It takes too much time for activating all toolpath -> checking tool-type -> add to the group.

Does anybody help me to change the skim feed rate without toolpath activate?

 

Labels (1)
3 REPLIES 3
Message 2 of 4

You can change the rapid feedrate like this:

FOREACH $t IN folder('Toolpath') {
	$t.feedrate.Rapid = 3000
	}

 

 

Message 3 of 4

@cfastNJWK6 Thank you for your suggestion.

Base on your idea I already applied it to my macro and it's working well.

Now, It just activates for which toolpath have "coolant == thru" and "skim feedrate > 3000". It save a lot of time instead of activating all toolpath. 

 

 

Foreach Ncp In Folder ('Group') {
Foreach item In components ($Ncp) {
if $item.coolant == "thru" {
if $item.feedrate.rapid > 3000 {
ACTIVATE Toolpath $item.name
FORM FEEDRATE
EDIT RSPEED "3000"
RESET TOOLPATH FEEDRATE
}
}
}
}
FORM ACCEPT FEEDRATE

Message 4 of 4
Cobra.007
in reply to: nguyenthinhvt95

This should be even faster

 

Foreach Ncp In Folder ('Group') {
Foreach item In components ($Ncp) {
if $item.coolant == "thru" and $item.feedrate.rapid > 3000 {
$item.feedrate.rapid = 3000
}
}
}

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report