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

LibraryObjectName

Returns the name of the selected object, if it is a library object.

Syntax

LibraryObjectName(Project, Library, Object, GenieOrSymbol)

Project:

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

Library:

Specifies the library that contains the symbol or genie you would like to retrieve the name of.

Object:

The name of the symbol or genie as a string.

GenieOrSymbol:

Indicates whether the object you want to retrieve the name for is a symbol or a genie.

Return Value

The name of the specified object as a string.

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

Related Functions

LibraryObjectFirstProperty, LibraryObjectNextProperty, LibraryObjectPutProperty

Example

On Error Resume Next
Err.Clear
GraphicsBuilder.LibraryObjectName Project, File, Page, LibType
If Err.Number = 0 Then
Debug.Print Project; "."; File; "."; Page
Else
Debug.Print "not a library object"
End If

Published June 2018