Technical Reference > Graphics Builder Automation Interface > Library Object Functions > LibraryObjectFirstPropertyEx

LibraryObjectFirstPropertyEx

Returns the name and value of a specified Genie's first property. Can be used in conjunction with LibraryObjectNextPropertyEx to step through the specified Genie's properties.

Syntax

LibraryObjectFirstPropertyEx(Project, Library, Object, PropertyName, PropertyValue)

Project:

The name of the project where the Genie is located.

Library:

The name of the library where the Genie is located.

Object:

The name of the genie.

PropertyName:

Returns the name of the active genie's first property as a string.

PropertyValue:

Returns the value of the active genie's first property as a string.

Return Value

The name and value of the specified Genie's first property as string values.

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

Related Functions

LibraryObjectPlace, LibraryObjectNextProperty, LibraryObjectPutProperty, LibraryObjectName

Example

' Retrieves the first property of the specified Genie
GraphicsBuilder.LibraryObjectFirstPropertyEx "include", "motors", "Motor_2_east", PropName, PropValue