Selection Members


The Selection type exposes the following members.

Methods

  NameDescription
Public methodDispose
Releases all resources used by the Selection
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetElementIds
Returns the ids of the elements that are currently selected within the project. The selection may not be complete. See GetReferences for more options.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetReferences
Returns the references that are currently selected.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodPickBox(PickBoxStyle)
Invokes a general purpose two-click editor that lets the user to specify a rectangular area on the screen.
Public methodPickBox(PickBoxStyle, String)
Invokes a general purpose two-click editor that lets the user to specify a rectangular area on the screen.
Public methodPickElementsByRectangle
Prompts the user to select multiple elements by drawing a rectangle.
Public methodPickElementsByRectangle(String)
Prompts the user to select multiple elements by drawing a rectangle while showing a custom status prompt string.
Public methodPickElementsByRectangle(ISelectionFilter)
Prompts the user to select multiple elements by drawing a rectangle which pass a customer filter.
Public methodPickElementsByRectangle(ISelectionFilter, String)
Prompts the user to select multiple elements by drawing a rectangle which pass a customer filter while showing a custom status prompt string.
Public methodPickObject(ObjectType)
Prompts the user to select one object.
Public methodPickObject(ObjectType, ISelectionFilter)
Prompts the user to select one object which passes a custom filter.
Public methodPickObject(ObjectType, String)
Prompts the user to select one object while showing a custom status prompt string.
Public methodPickObject(ObjectType, ISelectionFilter, String)
Prompts the user to select one object which passes a custom filter while showing a custom status prompt string.
Public methodPickObjects(ObjectType)
Prompts the user to select multiple objects.
Public methodPickObjects(ObjectType, ISelectionFilter)
Prompts the user to select multiple objects which pass a customer filter.
Public methodPickObjects(ObjectType, String)
Prompts the user to select multiple objects while showing a custom status prompt string.
Public methodPickObjects(ObjectType, ISelectionFilter, String)
Prompts the user to select multiple objects which pass a custom filter while showing a custom status prompt string.
Public methodPickObjects(ObjectType, ISelectionFilter, String, IListReference)
Prompts the user to select multiple objects which pass a custom filter while showing a custom status prompt string. A preselected set of objects may be supplied and will be selected at the start of the selection.
Public methodPickPoint
Prompts the user to pick a point on the active work plane.
Public methodPickPoint(String)
Prompts the user to pick a point on the active work plane while showing a custom status prompt string.
Public methodPickPoint(ObjectSnapTypes)
Prompts the user to pick a point on the active work plane using specified snap settings.
Public methodPickPoint(ObjectSnapTypes, String)
Prompts the user to pick a point on the active work plane using specified snap settings while showing a custom status prompt string.
Public methodSetElementIds
Selects the elements.
Public methodSetReferences
Selects the references. The references can be an element or a subelement in the host or a linked document.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyIsValidObject
Specifies whether the .NET object represents a valid Revit entity.

See Also