Cyliderparams

Hello,

I am working on an assembly and trying to check if 2 axes of 2 different cylindrical surfaces on different components are aligned.

I used ISurface::CylinderParams Property ​to get the coordinates of the axis. This function returns the coordinates with respect to the part- fixed coordinate system. However, the coordinates I need have to be expressed with respect to the assembly-fixed coordinate system. How can I perform the coordinates transformation or is there another function.

yours faithfully

SolidworksApi macros
Answers 1
RE
RE 2018-07-07 Best Answer

Hi Iyed

I've not yet done transforms to assembly coordinates, but I know the concept in a part using sketch transforms so I bet it's the same principle.  This is probably what you looking for

2018 SOLIDWORKS API Help - Transform2 Property (IComponent2)

2018 SOLIDWORKS API Help - Transform Point from Component Space to Assembly Space Example (VBA)