Extensibility > Graphics Builder Automation Interface > Library Object Functions > LibraryNextObject

LibraryNextObject

Returns the name of the next library object when following a call of the function LibraryFirstObject. By using multiple calls of this function, you can iterate through a library objects.

Syntax

LibraryNextObject(ObjectName)

ObjectName:

Returns the name of the next object as a string.

Return Value

The name of the next object as string values.

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

Related Functions

LibraryFirstObject, LibraryObjectPlace, LibraryObjectFirstProperty, LibraryObjectNextProperty, LibraryObjectFirstPropertyEx, LibraryObjectPutProperty, LibraryObjectName

Example

On Error Resume Next
Err.Clear
GraphicsBuilder.LibraryFirstObject ProjectName,LibraryName,1,ObjectName
While Err.Number = 0
Debug.Print ObjectName
GraphicsBuilder.LibraryNextObject ObjectName
Wend

Published June 2018