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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Get Parent Assembly Name from Child

pratik_chougule
7-Bedrock

Get Parent Assembly Name from Child

Hi all,

We have ProMdl handle of child;
How to get ProMdl handle of parent assembly?.. So as to get name of the Parent Assembly of the child..

Or is there any other way around or API to get name of the Parent Assembly?

Thanks in advance,
Regards,
Pratik

1 REPLY 1

It is not working in that order, should the API return an array if this handle is used in multiple assemblies, or think about that the model is assembled twice, in the same level. You have to visit an assembly by components, you mmay have to write a special filter. But you need to save the structure (asm > prt‘s asm‘) in memory, or do this over an over.  If you get the feature parent(s) from the component feature, you may get the parent component, but I never tried that 😉 because you may not always find a parent assembly.

neumann001040.png

Top Tags