Pick Model Elements

NOTE: This node has been removed from Rhythm. More info here

Use this python as a replacement:

import clr

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)

clr.AddReference("RevitAPIUI")
from  Autodesk.Revit.UI import *

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

#offer the user the selection
elementReferences = uidoc.Selection.PickObjects(Selection.ObjectType.Element, 'Pick model elements')

#our list to append selection results to
elements = []

#obtain the elements via the id
for i in elementReferences:	
	try:
		elements.append(doc.GetElement(i.ElementId))
	except:
		elements.append([])
		
OUT = elements

Pick Model Elements

Dynamo Hierarchy: Rhythm>Revit>Selection>Pick Model Elements

Description:

This node offers a pick method for selecting elements in Revit.

Inputs:

refresh : bool

Outputs:

elements : Element

Pick Model Element

Pick Model Element

Dynamo Hierarchy: Rhythm>Revit>Selection>Pick Model Element

Description:

This offers a single selection of a model element. Created for Dynamo Player usage.

Inputs:

refresh : bool

Outputs:

elements : Element

Numbered Pick Model Elements

Numbered Pick Model Elements

Dynamo Hierarchy: Rhythm>Revit>Selection>Numbered Pick Model Elements

Description:

This offers the ability to specify number of elements to be selected.

Inputs:

amount : int

refresh : bool

Outputs:

elements : Element

Isolated Pick Model Elements

Isolated Pick Model Elements

Dynamo Hierarchy: Rhythm>Revit>Selection>Isolated Pick Model Elements

Description:

This allows a multiple selection of elements of specified category.

Inputs:

refresh : bool

Category : Category

Outputs:

elements : Element