cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Pro Program EXECUTE same part in an assembly with different parameters

ZK_9568324
3-Newcomer

Pro Program EXECUTE same part in an assembly with different parameters

Is it possible to use an Execute statements to drive different parameters to the same model in an assembly? 

I want to be able to do something like this where I can pass different values to the parts without having to duplicate the part.

EXECUTE PART TEST1(5)
WIDTH = WIDTH
HEIGHT = HEIGHT
END EXECUTE

EXECUTE PART TEST1(6)
WIDTH = WIDTH + 5
HEIGHT = HEIGHT + 5
END EXECUTE

2024-09-16_9-31-44.jpg

 

2 REPLIES 2
tbraxton
22-Sapphire I
(To:ZK_9568324)

If you are asking if the execute is capable of creating/adding a new component in an assembly, then I am pretty confident that the answer is no.
 
If you are asking how the execution is managed in assembly mode, then this may be helpful.
 
Hierarchy of Assembly Execution
Assemblies can execute subassemblies, which in turn can execute other subassemblies. The parts that compose a subassembly are not executed by the main assembly but are instead executed by the subassembly. Only the next level down in an assembly is executed by the assembly design.
========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

Hi @ZK_9568324,


I wanted to see if you got the help you needed.


If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.
Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.


Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,

Catalina
PTC Community Moderator
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags