Technical Reference > Graphics Builder Automation Interface > Object Drawing and Property Functions > AttributeNodeCoordinatesFirst

AttributeNodeCoordinatesFirst

Returns the coordinates of the first node of a free hand line, polygon or pipe.

This function applies to the selected object, which is typically the last placed object. By using the PageSelectFirstObject() and PageSelectNextObject() functions, you can access your objects and change or read their properties.

Syntax

AttributeNodeCoordinatesFirst(XPosition, YPosition)

XPosition:

Distance from the left-hand side of the page to the first node of an object, measured in pixels.

YPosition:

Distance from the top of the page to the first node of an object, measured in pixels.

Return Value

The coordinates of the current object's first node. If values are out of range on writing to the attribute, the function will exit and report the error E_INVALIDARG. If there is no active object, they will exit and report a return value of E_HANDLE.

Note: For details on handling return and error values, see Error Handling.

Related Functions

AttributeNodeCoordinatesNext