RVTDocs.com
Namespace: Autodesk.Revit.DB Class: UnitUtils

UnitUtils.GetDiscipline

Method
Description:
Gets the discipline for a given measurable spec.
Syntax
public static ForgeTypeId GetDiscipline(
	ForgeTypeId specTypeId
)
Parameters
Parameter Type Description
specTypeId ForgeTypeId Identifier of the measurable spec.
Return Value
Type Description
ForgeTypeId Identifier of the discipline.
Exceptions
Exception Condition
ArgumentException specTypeId is not a measurable spec identifier. See UnitUtils.IsMeasurableSpec(ForgeTypeId).
ArgumentNullException A non-optional argument was null