DIAdem Help

Method: Item for BirdsEyeViewObjects

  • Updated2024-09-12
  • 2 minute(s) read

Method: Item for BirdsEyeViewObjects

Returns the BirdsEyeViewObjectBase object associated with a specific name or index in DIAdem VIEW.

Set oBirdsEyeViewObjectBase = Object.Item(NameOrIndex)
ObjectBirdsEyeViewObjects
Object with this method
NameOrIndexVariant
Specifies the name or index of the BirdsEyeViewObjectBase object.
oBirdsEyeViewObjectBaseBirdsEyeViewObjectBase
Returned object
Note  You can always omit the Item method because it is the standard element of the collection.

The following example outputs a message with the type of a BirdsEyeViewObjectBase object. The second row in the example displays the simplified syntax without item. The DisplayObjType must be a BirdsEyeViewObjects type.

VBScriptPython

 

If View.ActiveSheet.ActiveArea.DisplayObjType = "BirdsEyeView" Then
  Call MsgBoxDisp("Object Type: " & View.ActiveSheet.ActiveArea.DisplayObj.BirdsEyeViewObjects.Item(1).Type)
  Call MsgBoxDisp("Object Type: " & View.ActiveSheet.ActiveArea.DisplayObj.BirdsEyeViewObjects(1).Type)
End If