ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
DBDidier Bernard23/08/2024

I have a linear pattern of components in an assembly:

 

I would like to select some of them - and access bodies (IBody2) of those components via solidworks api.
How can I do that?

Using component.GetBody() - always returns a body at the same location in 3D coordinate space.
I googled a bit, and a suggestion is to use: GetSelectedObjectsComponent4() instead of GetSelectedObject6() in order to obtain the