DIAdem Help

Content Type
Programming Language
Current manual

Collection: UsedBars

Collection: UsedBars

Collection of all bars used in a DIAdem panel or in the DIAdem main window. The bars that a panel or the DIAdem main window contain are references to bars of the Bars collection. To access an individual bar in a script use the Item method or enter the index or the name in parentheses.

The following example displays the names of all bars in the DIAdem main window:

VBScriptPython

 

Dim oMyBar
For each oMyBar in BarManager.Shell.UsedBars
  Call MsgBoxDisp("Name: " & oMyBar.ID)
Next

The following example displays the names of all DIAdem panels and the number of bars:

VBScriptPython

 

Dim oMyPanel
For each oMyPanel in BarManager.Panels
  Call MsgBoxDisp(oMyPanel.ID & ", " & oMyPanel.UsedBars.Count)
Next

Properties

Count

Methods

Item

Was this information helpful?