Creates a new Units object with default settings for Metric or Imperial units.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public Units( UnitSystem unitSystem )
Parameters
- unitSystem UnitSystem
- Indicates whether the Units object should be initialized with default settings for Metric or Imperial units.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |