Im looking to get all the Spec Type for the new add shared parameters node. I got the “Group Types” thanks to Data-Shapes. I figured they where similar but cant seem to get it.
Thanks!
Hi,
here an example
import clr
import sys
#import Revit API
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *
prop_infos = clr.GetClrType(SpecTypeId).GetProperties()
dict_forgeTypeId = {p.Name : p.GetGetMethod().Invoke(None, None) for p in prop_infos}
OUT = dict_forgeTypeId
there may be a simpler method without going through .Net reflection
8 Likes