revitron.selection¶
A small helper submodule to simplify accessing the list of selected elements.
Classes:
A selection helper class. |
- class Selection[source]¶
Bases:
object
A selection helper class.
Example:
for element in revitron.Selection.get(): ...
Methods:
first
()Get the first elements of the list of selected elements.
get
()Get the currently selected elements.
set
(ids)Set the selection to a list of element ids.
- static first()[source]¶
Get the first elements of the list of selected elements.
- Returns
The first element in a list of selected elements
- Return type
object