how to select body from components at assembly level
how to select body from components at assembly level
(OP)
I want to select only the bodies of the individual components from a component assembly so that those bodies can be moved to a particular layer. I am writing an NXOpen application using C++ language for the same. Can anyone plz guide me how to approach. I am trying to use Component->prototype->owningPart->body Collection sequence but unable to select bodies.





RE: how to select body from components at assembly level
I've not tested moving bodies in the assembly to different layers, but I imagine one of three things happening:
www.nxjournaling.com
RE: how to select body from components at assembly level
NXOpen::Part *part = dynamic_cast<NXOpen::Part*>(component->Prototype());
NXOpen::BodyCollection *bodies = part->Bodies();
Of course, the bodies you get this way are from prototype part of the component. Moving the component bodies around the layers seems to get reset on reload/update.
(Bit of a necropost, sorry)
RE: how to select body from components at assembly level
RE: how to select body from components at assembly level
Changing the layer of this body may not have the intended effect...
www.nxjournaling.com