| Revit 2020.1 API |
| ShapeImporter..::..SetDefaultLengthUnit Method |
| ShapeImporter Class See Also |
Sets the length unit to be used if not specified in the input SAT file.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.1.1.1)
Since:
2017_subscription_update
Syntax
| C# |
|---|
public void SetDefaultLengthUnit( ImportUnit defaultLengthUnit ) |
| Visual Basic |
|---|
Public Sub SetDefaultLengthUnit ( _ defaultLengthUnit As ImportUnit _ ) |
| Visual C++ |
|---|
public: void SetDefaultLengthUnit( ImportUnit defaultLengthUnit ) |
Parameters
- defaultLengthUnit
- Type: Autodesk.Revit.DB..::..ImportUnit
The length unit to be used if not specified in the input SAT file.
Remarks
Values ImportUnit::Default and ImportUnit::Custom are ignored. ImportUnit::Centimeter is used instead.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |