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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Get Parent Assembly Name from Child

pratik_chougule
10-Marble

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

Announcements


Top Tags