| Revit 2020 API |
| AnalyticalModel..::..Approximate Method |
| AnalyticalModel Class See Also |
Switches between non-approximated (e.g., Curved) Analytical Models
and approximated (made up of lines only) Analytical Models
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.0.0.377)
Since:
2011
Syntax
| C# |
|---|
public void Approximate( bool enableApproximation ) |
| Visual Basic |
|---|
Public Sub Approximate ( _ enableApproximation As Boolean _ ) |
| Visual C++ |
|---|
public: void Approximate( bool enableApproximation ) |
Parameters
- enableApproximation
- Type: System..::..Boolean
Enable/disable approximated function.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..DisabledDisciplineException | None of the following disciplines is enabled: Structural. |
| Autodesk.Revit.Exceptions..::..InvalidOperationException | This AnalyticalModel does not support approximation. |