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
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
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.