Macro to Activate Toolpath that is selected...

matthew_metzingerRD8F6
Enthusiast

Macro to Activate Toolpath that is selected...

matthew_metzingerRD8F6
Enthusiast
Enthusiast

PowerMill 2024...

 

In PowerMill, I select (1) toolpath with my cursor.

 

I would like to Activate this selected toolpath.

 

How in a macro would I do this?

 

Thank you.

0 Likes
Reply
Accepted solutions (1)
440 Views
4 Replies
Replies (4)

iamcdn79
Mentor
Mentor

You posted this same Q in this thread before https://forums.autodesk.com/t5/powermill-forum/how-can-i-activate-the-toolpath-that-is-highlighted-s...


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes

icse
Collaborator
Collaborator
Accepted solution

try this:

//make sure the selected items are toolpaths
entity list $selected = filter(explorer_selected_entities(),'this.RootType == "toolpath"')

//if nothing is selected do nothing
if size($selected) < 1 {
	return
}

//activate the toolpath
activate toolpath ${selected[0].Name}
0 Likes

matthew_metzingerRD8F6
Enthusiast
Enthusiast

woops, my bad.  can't remember today for last week.

0 Likes

matthew_metzingerRD8F6
Enthusiast
Enthusiast

Thank you for your help

0 Likes