How can I get the SpecTypes with code. Right now I just make a list with the node Spec Types but I would like to have it with code. These dropdowns are always problematic and I like only to use them for user input. Any ideas?
list(map(lambda t_id: LabelUtils.GetLabelForSpec(t_id), SpecUtils.GetAllSpecs()))
Hi,
Here are some examples
The farthest I have found is ForgeTypeId. These SpecType objects, are they dynamo wrappers? I don’t see any in the documentation. static class SpecTypeId has a bunch of properties but they’re all ForgeTypeId. @c.poupin
That’s correct. SpecTypeId is a ForgeTypeId. Just a particular flavor of ForgeTypeId. These flavors include:
- DisciplineTypeId
- GroupTypeId
- ParameterTypeId
- SpecTypeId
- SymbolTypeId
The dynamo Spec Types is just giving you the same as the Revit api SpectTypeId.. If you run that node into a ForgeType.TypeId node - you’ll see the string associated with the ForgeTypeId.





