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: 

Name MODELCOMPSET with workplane name

1 REPLY 1
SOLVED
Reply
Message 1 of 2
raffnecBNJ8C
490 Views, 1 Reply

Name MODELCOMPSET with workplane name

I want to create several MODELCOMPSET whose names will contain the name of the workplane name.
For instance:
a_G55
b_G55
a_G56
b_G56

But I don’t understand the syntax of writing a macro.

CREATE LEVEL a_$workplane.name MODELCOMPSET

I get MODELCOMPSET with the name "a_$workplane.name", I wanted it to be a_G56.

1 REPLY 1
Message 2 of 2

FOREACH wp IN FOLDER("WORKPLANE") {
	STRING $newName = "a_" + $wp.Name
	IF NOT entity_exists(entity("Level",newName)) {
		CREATE LEVEL $newName MODELCOMPSET
	}
}

Rafael Sansão

EESignature

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

Post to forums  

Autodesk Design & Make Report