Revit 2020.1 API |
FreeFormElement..::..SetFaceOffset Method |
FreeFormElement Class See Also |
Offsets a planar face of the free form element a certain distance in the normal direction.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.1.1.1)
Since:
2014
Syntax
C# |
---|
public void SetFaceOffset( Face face, double offset ) |
Visual Basic |
---|
Public Sub SetFaceOffset ( _ face As Face, _ offset As Double _ ) |
Visual C++ |
---|
public: void SetFaceOffset( Face^ face, double offset ) |
Parameters
- face
- Type: Autodesk.Revit.DB..::..Face
The face to offset.
- offset
- Type: System..::..Double
The magnitude of the offset. A positive value offsets out of the input solid. A negative value offsets into the solid shape.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | face does not belong to the solid. -or- The face to be offset should be planar and satisfy constraints of its parent element. |
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |