The following Selection Manager commands allow you to perform different actions on the currently selected graphic.
To access the Selection Manager:
selection_manager = ExtAPI.SelectionManager
To clear the current selection:
selection_manager.ClearSelection()
To retrieve the current selection:
selection = selection_manager.CurrentSelection
This command returns the object ISelectionInfo
, which
describes the selected entities.
To retrieve entities:
selection.Entities