Skip to main content
1-Visitor
November 29, 2018
Question

Get Parent Assembly Name from Child

  • November 29, 2018
  • 1 reply
  • 1471 views

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

18-Opal
November 29, 2018

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