Selection
Description:
Contains the current user selection of elements within the project.
Contains the current user selection of elements within the project.
Remarks:
The Selection object is used to retrieve the current user selected elements when an external API command is executed.
The Selection object is used to retrieve the current user selected elements when an external API command is executed.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.UI.Selection.Selection
System.Object
Autodesk.Revit.UI.Selection.Selection
public class Selection : IDisposable
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Dispose() | None | Releases all resources used by the Selection | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetElementIds() | ICollection<ElementId> | Returns the ids of the elements that are currently selected within the project. The selection may not be complete. See GetReferences for more options. | |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetReferences() | IList<Reference> | Returns the references that are currently selected. | |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| PickBox(PickBoxStyle) | PickedBox | Invokes a general purpose two-click editor that lets the user to specify a rectangular area on the screen. | |
| PickBox(PickBoxStyle, String) | PickedBox | Invokes a general purpose two-click editor that lets the user to specify a rectangular area on the screen. | |
| PickElementsByRectangle() | IList<Element> | Prompts the user to select multiple elements by drawing a rectangle. | |
| PickElementsByRectangle(ISelectionFilter) | IList<Element> | Prompts the user to select multiple elements by drawing a rectangle which pass a customer filter. | |
| PickElementsByRectangle(String) | IList<Element> | Prompts the user to select multiple elements by drawing a rectangle while showing a custom status prompt string. | |
| PickElementsByRectangle(ISelectionFilter, String) | IList<Element> | Prompts the user to select multiple elements by drawing a rectangle which pass a customer filter while showing a custom status prompt string. | |
| PickObject(ObjectType) | Reference | Prompts the user to select one object. | |
| PickObject(ObjectType, ISelectionFilter) | Reference | Prompts the user to select one object which passes a custom filter. | |
| PickObject(ObjectType, String) | Reference | Prompts the user to select one object while showing a custom status prompt string. | |
| PickObject(ObjectType, ISelectionFilter, String) | Reference | Prompts the user to select one object which passes a custom filter while showing a custom status prompt string. | |
| PickObjects(ObjectType) | IList<Reference> | Prompts the user to select multiple objects. | |
| PickObjects(ObjectType, ISelectionFilter) | IList<Reference> | Prompts the user to select multiple objects which pass a customer filter. | |
| PickObjects(ObjectType, String) | IList<Reference> | Prompts the user to select multiple objects while showing a custom status prompt string. | |
| PickObjects(ObjectType, ISelectionFilter, String) | IList<Reference> | Prompts the user to select multiple objects which pass a custom filter while showing a custom status prompt string. | |
| PickObjects(ObjectType, ISelectionFilter, String, IList<Reference>) | IList<Reference> | ||
| PickPoint() | XYZ | Prompts the user to pick a point on the active work plane. | |
| PickPoint(ObjectSnapTypes) | XYZ | Prompts the user to pick a point on the active work plane using specified snap settings. | |
| PickPoint(String) | XYZ | Prompts the user to pick a point on the active work plane while showing a custom status prompt string. | |
| PickPoint(ObjectSnapTypes, String) | XYZ | Prompts the user to pick a point on the active work plane using specified snap settings while showing a custom status prompt string. | |
| SetElementIds(ICollection<ElementId>) | None | ||
| SetReferences(IList<Reference>) | None | ||
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. |