Category Profiles is not in the list of categories in Dynamo

Hi friends

I am extracting the attributes of elements of different categories by Dynamo. But in the list of categories, I cannot find Profiles category.
Does anybody know how I can select Profiles category? Thanks :slightly_smiling_face:

Profiles%20Category-%20%20Revit

Hi @Mojtaba.vlj

‘Profiles’ is not in the Document.Settings.Categories list. ‘Profiles’ category is internal and is not listed in Document.Settings.Categories using the Revit API. The approach to access this category is to use the BuiltInCategory.OST_ProfileFamilies. Cheers!

7 Likes

Thank you so much dear @Kulkul for your help

I used you script, it worked but when I tried to select all elements, it didn’t work. I need to list all types and elements of Profiles category plus the elements’ attributes and send them into Excel.
I want to know how I can select all types and elements of Profiles

Thank you so much

For anyone stumbling across this like I just did - the python code gives you the Family Types as the output, no need to use “All Elements of Type” node.

Thanks Kulkul.

Hello @Kulkul,
I’m on my first steps on Python. I’ve tried your code and I’ve got the following warning:
“Traceback (most recent call last):
File “”, line 32, in
TypeError: expected ICollection[BuiltInCategory], got typ”

What is going wrong?

"# Carica librerie DesignScript e standard Python
import sys
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *

I valori di immissione per questo nodo verranno memorizzati come elenco nelle variabili IN.

dataEnteringNode = IN

Posizionare il codice sotto questa riga

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

Import RevitAPI

clr.AddReference(“RevitAPI”)
from Autodesk.Revit.DB import *

import System
from System import Array
from System.Collections.Generic import *

cat = [BuiltInCategory.OST_ProfileFamilies]
bic = List[BuiltInCategory]
filter = ElementMulticategoryFilter(bic)
fec = FilteredElementCollector(doc).WherePasses(filter).ToElements()
OUT = fec

"