API Documentation > CorelDRAW > 2025-v26 > Node > IVGNode
Node.GetPosition method
Gets the horizontal and vertical position of the node on the page
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 x- and y-coordinates of a node. The SetPosition method moves a node to new coordinates.
Examples:
The following VBA example draws a small ellipse over each node in the selected curve.
Sub Test()
Dim n As Node
Dim x As Double, y As Double
For Each n In ActiveShape.Curve.Nodes
  n.GetPosition x, y
  ActiveLayer.CreateEllipse2 x, y, 0.05
Next n 
End Sub