Export a list of elements as a Revit selection set

hello, is there a node, or a way to export a list of elements as a Revit selection set ? or, similar, have them selected in filter and highlighted?
Thanks

Export as a Revit file? Or just a list of element Id’s?

Just quick export to csv is better, for python can get selected element from revit :

#Copyright(c) 2016, Dimitar Venkov
# @5devene, dimitar.ven@gmail.com

import clr

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

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
uidoc = DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

def output1(l1):
	if len(l1) == 1: return l1[0]
	else: return l1

selid = uidoc.Selection.GetElementIds()
OUT = output1([doc.GetElement(id).ToDSType(True) for id in selid])


image

ExportExcelElement.dyn (12.9 KB)

Thanks, I was meaning to get the listed elements from dynamo selected and highlighted back in Revit?

Hi @fotista …think genius loci have a node called show element, probably is what you need

You do know Revit has a tool built in to do this(?)
image

1 Like

that’s exactly what i was looking for, thanks a million Søren ,

1 Like