AnsweredAssumed Answered

Get CG of Component in Assembly Coordinates

Question asked by John Howell on Sep 17, 2020
Latest reply on Sep 17, 2020 by John Howell

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?

Outcomes