Hi,
I'm using the SW API to write annotations in 3D parts. I'm facing some isues regarding the position and the display of the created annotations.
In fact, to write an annotation, I firstly use the SelectByID2 to specify the attached point of the annotation (arrow of the Leader) then the setposition method of IAnnotation, with 3d coordinates XYZ, to define the position of the annotation.
However, the created annotation is not well-positioned as defined by the XYZ coordinates, and is always placed in the XY plane, even If I create and activate another "Annotation View" before inserting the annotation.
So I have two related questions:
1) How can I attach a plane/Annotation View to an annotation ?
2) Does the setposition method require 3d coordinates or just 2D if a plane/annotation view is attached?
Regards,
SolidworksApi macros