Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

LibraryObjectName

  • Last UpdatedJul 13, 2023
  • 1 minute read

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.

1 = Genie

2 = Symbol

Return Value

The name of the specified object as a string.

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

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

In This Topic
TitleResults for “How to create a CRG?”Also Available in