ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
JHJohn Howell17/09/2020

I have an existing function within an AddIn that traverses an assembly and extracts information from each child. Some data is extracted from the Component object, other data from the individual ModelDoc/extension object of the child.

I would like to add a function to extract the CG of a component - in assembly coordinates. So far all I see that is possible is to extract the CG from the individual ModelDoc (extension) object, which returns the data in the ModelDoc coordinate system, not the assembly coordinate system.

Is there a way to extract this data without having to do coordinate transforms?