Get Parameter Names grouped by Type (How to?)

Hey, this is a very crude way to obtain what you are looking for:

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

params=UnwrapElement(IN[0])

types=[]
groups=[]
for param in params:
	p=param.GetDefinition()
	types.append(str(p.ParameterType))
	groups.append(str(p.ParameterGroup))

OUT=types,groups

I am exporting the types and groups as strings so you can manage them in dynamo as usual

Here is the ParametrGroup enum for reference:
http://www.revitapidocs.com/2018.1/9942b791-2892-0658-303e-abf99675c5a6.htm

1 Like