2022 Class
Changes 8
C

SpecUtils

Description:
A utility class of functions related to specs. A spec describes a data type that parameters can hold.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.SpecUtils
public static class SpecUtils
Name Return Type Description
M GetAllSpecs() The spec identifiers. Gets the identifiers of all specs.
M GetParameterType(ForgeTypeId) ParameterType Gets the ParameterType value corresponding to the given spec identifier.
M GetSpecTypeId(ParameterType) ForgeTypeId Gets the ForgeTypeId identifying the spec corresponding to the given ParameterType value.
M IsSpec(ForgeTypeId) bool Checks whether a ForgeTypeId identifies a spec.
M IsValidDataType(ForgeTypeId) bool Returns true if the given ForgeTypeId identifies a valid parameter data type.