DIAdem Help

Collection: PolarSelectedElements

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

Collection: PolarSelectedElements

Collection of all PolarSelectedElement objects in DIAdem REPORT. Use the PolarSelectedElements collection to access a selected element in a polar axis system.

The following example checks whether elements of a polar axis system are selected in the current worksheet and displays the name of the axis system, the number of selected elements, and their type:

VBScriptPython

 

Dim oMyReportObj, oMyReportObjects, oMySelection, sOutput
Set oMyReportObjects = Report.ActiveSheet.Objects
For Each oMyReportObj in oMyReportObjects
  If oMyReportObj.ObjectType = eReportObjectPolarSystem Then
    Set oMySelection = oMyReportObj.SelectedElements
    sOutput = "Object name: " & oMyReportObj.Name & vbCrLf &_
              "Number of selected elements: " & oMySelection.Count & vbCrLf
    For I = 1 to oMySelection.Count
      sOutput = sOutput & "Element type: " & oMySelection.Item(i).Type & vbCrLf
    Next
    Call MsgBoxDisp(sOutput)
  End If
Next

Properties

Count

Methods

AddPolar | Item