Object: 3DSelectedElement
- Updated2024-09-12
- 1 minute(s) read
(3DAxisSystem | Collections) > 3DSelectedElements > Object: 3DSelectedElement
Object: 3DSelectedElement
The 3DSelectedElement object provides a selected element in a 3D axis system in DIAdem REPORT.
The following example checks whether elements of a 3D axis system are selected in the current worksheet and displays the name of the axis system, the number of selected elements, and their type:
| VBScript | Python |
Dim oMyReportObj, oMyReportObjects, oMySelection, sOutput, i Set oMyReportObjects = Report.ActiveSheet.Objects For Each oMyReportObj in oMyReportObjects If oMyReportObj.ObjectType = eReportObject3DAxisSystem 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