Hide Table of Contents
GetPosition Method (IAnnotation)

Gets the position of this annotation.

.NET Syntax

Visual Basic (Declaration) 
Function GetPosition() As System.Object
Visual Basic (Usage) 
Dim instance As IAnnotation
Dim value As System.Object
value = instance.GetPosition()
System.object GetPosition()
System.Object^ GetPosition(); 

Return Value

Array of doubles (see Remarks)



The retval is an array of 3 doubles, the x, y, z origin of the annotation.

If this method is not successful in retrieving the position of the annotation in Visual Basic for Applications (VBA), then the VARIANT SafeArray is empty (OLE Automation only), or the status value is S_false (COM only). Make sure that you check this value before using the returned position.

The following table lists the types of annotations that this method supports and the position of the x, y, z origin. In a drawing, the x, y, z origin is relative to the origin of the drawing sheet (the lower-left corner of the sheet).

Type of Annotation Position of XYZ Origin
Datum Feature Symbols Point where leader hits symbol
Datum Target Symbols Centerpoint of the circle that is attached to the leader
Display Dimensions Upper-left corner of the text box of the display dimension
Geometric Tolerances Upper-left corner of the symbol
Notes Upper-left corner of the text box
Surface Finish Symbols Lower-left point of symbol
Table Annotation Position of x,y,z determined by ITableAnnotation::AnchorType
Weld Symbols Left endpoint of the main horizontal line in the symbol


If you use this method on any other types of annotations, SOLIDWORKS takes no action and returns false.


See Also


SOLIDWORKS 2000 FCS, Revision Number 8.0.

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   GetPosition Method (IAnnotation)
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: API Help (English only) 2022 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.