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: 

Rename highlighted workplane without activating macro

1 REPLY 1
SOLVED
Reply
Message 1 of 2
keeganh
494 Views, 1 Reply

Rename highlighted workplane without activating macro

I'm having trouble making a macro that grabs the highlighted workplane (non activated) without having to know the name of the workplane.

 

eg.

RENAME Workplane "2"

 

what i want is something like

 

RENAME Workplane " selected workplane" "Orientation Home"

 

any ideas?

1 REPLY 1
Message 2 of 2
TK.421
in reply to: keeganh

this'll do it:

 

FOREACH wp IN explorer_selected_entities() {
    RENAME WORKPLANE $wp.name "new name"
}

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie

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

Post to forums  

Autodesk Design & Make Report