API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.GetPosition method
Returns x and y coordinate and ReferencePoint of a shape
Syntax:
Sub GetPosition(ByRef PositionX As Double, ByRef PositionY As Double)
Parameters:
Name Type Description
PositionX
Double
PositionY
Double
Remarks:
The GetPosition method returns the coordinates of a point on a shape as specified by the Document.ReferencePoint property. See also the Shape.PositionX and Shape.PositionY properties.
Examples:
The following VBA example creates a small circle in the center of each shape on the page.
Sub Test()
Dim x As Double, y As Double
Dim s As Shape
ActiveDocument.ReferencePoint = cdrCenter
For Each s In ActivePage.Shapes
  s.GetPosition x, y
  ActiveLayer.CreateEllipse2 x, y, 0.03
Next s 
End Sub