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

LibraryFirstObject

Returns the name of the first library object. Can be used with LibraryNextObject to iterate through library objects.

Syntax

LibraryFirstObject(Project,Library,Type,Object)

Project:

The name of the project that contains the object library you would like to browse.

Library:

Specifies the library that contains the objects you would like to browse.

Type:

Specifies the type of the object you want to browse.

Object:

Returns the name of the first object as a string.

Return Value

The name of the first object as string values.

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

Related Functions

LibraryNextObject, 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