We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 776286b + 3038ca5 commit 852aafdCopy full SHA for 852aafd
RevitPythonShell/init.py
@@ -30,7 +30,9 @@ def get_selected_elements(doc):
30
# old method
31
return list(__revit__.ActiveUIDocument.Selection.Elements)
32
selection = get_selected_elements(doc)
33
-
+# convenience variable for first element in selection
34
+if len(selection):
35
+ s0 = selection[0]
36
37
#------------------------------------------------------------------------------
38
import clr
0 commit comments