System.Object
   Eplan.EplApi.HEServices.SelectionSet
System.Object
   Eplan.EplApi.HEServices.SelectionSet
SelectionSet selectionSet = new SelectionSet(); StorableObject[] storableObjects = selectionSet.Selection; if (storableObjects.Length == 0) { Console.Out.WriteLine("No current selection!"); return; } else { Console.Out.WriteLine("Current selection contains of:"); foreach (StorableObject so in storableObjects) { Console.Out.WriteLine("Object type: " + so.GetType().ToString()); } }
SelectionSet selectionSet = new SelectionSet(); //If any selected object will be changed, LockProjectByDefault must be set to true before obtaining any object selectionSet.LockProjectByDefault = true; Project oProject = selectionSet.GetCurrentProject(false); oProject.ProjectName = "new_name";
| Name | Description | |
|---|---|---|
![]()  | SelectionSet Constructor | Default constructor. | 
| Name | Description | |
|---|---|---|
![]()  | CurrentlyEdited | Determines Page or InstallationSpace currently edited in graphical editor. | 
![]()  | Document | Determines whether a document is selected. This will only return a document, when the selection is inside the graphical editor. | 
![]()  | IsOnlyOneObjectSelected | Determines whether exactly one object is selected. | 
![]()  | IsPageSelected | Determines whether a page is selected. | 
![]()  | Layers | Gets the selected layers of the active project as an array. | 
![]()  | LockProjectByDefault | If set to true, the objects returned and the rest objects from project by the SelectionSet method are locked. Default value is false.   | 
![]()  | LockSelectionByDefault | If set to true, the objects returned by the SelectionSet methods are locked. Default value is true.   | 
![]()  | Mates | Returns selected mate objects | 
![]()  | OpenedInstallationSpaces | Gets installation spaces opened in GED. | 
![]()  | OpenedPages | Gets pages open in GED. | 
![]()  | ProjectMessages | Gets all selection project's messages. | 
![]()  | SelectedProjects | Return the selected projects of the active dialog as an array. If you select elements from different projects inside of one dialog you can determinate the selected projects. | 
![]()  | Selection | Gets the complete selection on the active window. Property LockProjectByDefault should be set to true before any changes on any inside elements of obtained objects.   | 
![]()  | SelectionRecursive | Gets the complete selection on the active window. Property LockProjectByDefault should be set to true before any changes on any inside elements of obtained objects.   | 
| Name | Description | |
|---|---|---|
![]()  | _setObjectTypes | For internal use. | 
![]()  | GetCurrentProject | Determines the active project. | 
![]()  | GetSelectedObject | \Returns the first selected object. | 
![]()  | GetSelectedPages | Gets the selected pages. |