Anuncios
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
Comentario
Mentor
Mentor

To clarify idea further:

 

There is an existing  API enumeration called UnitGroup this can be used as return instead of ParameterTypeDiscipline above.

 

There is a function UnitUtils.GetUnitGroup(UnitType) but this takes a value of UnitType which is a separate enumeration from ParameterType. Not all ParameterType values are represented in the UnitType enumeration so a direct or indirect use of UnitUtils.GetUnitGroup(UnitType) to get the UnitGroup of a ParameterType does not seem possible.