Element.ElementType Python

Hi All,

Does anyone know how to get all the element’s “Family Type”,“Family” from current doc [IN PYTHON]?

Basically i am after the node “Element.ElementType” in Python.

Thanks in advance!



1 Like

Hi @SeanP

Thanks for the quick response

Unsure, what i am doing wrong, can you please advise?

import clr

from Autodesk.Revit.DB import *

from RevitServices.Persistence import DocumentManager

#The inputs to this node will be stored as a list in the IN variables.
#Get the project document.
doc = DocumentManager.Instance.CurrentDBDocument

elem = IN[0]


You need to iterate the list to get the singular values. It may be good to review some of the Primer materials related to Python before trying to go too far into this approach.

elems = UnwrapElement(IN[0])
results = []
for elem in elems:

OUT = results
1 Like

Thanks @SeanP

1 Like