| Revit 2022.1 API |
| AnalyticalModelStick..::..SetAlignmentMethod Method |
| AnalyticalModelStick Class See Also |
Sets the alignment method for a given selector.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.1.0)
Since:
2015
Syntax
| C# |
|---|
public void SetAlignmentMethod( AnalyticalElementSelector selector, AnalyticalAlignmentMethod method ) |
| Visual Basic |
|---|
Public Sub SetAlignmentMethod ( _ selector As AnalyticalElementSelector, _ method As AnalyticalAlignmentMethod _ ) |
| Visual C++ |
|---|
public: void SetAlignmentMethod( AnalyticalElementSelector selector, AnalyticalAlignmentMethod method ) |
Parameters
- selector
- Type: Autodesk.Revit.DB.Structure..::..AnalyticalElementSelector
End of the analytical model.
- method
- Type: Autodesk.Revit.DB.Structure..::..AnalyticalAlignmentMethod
The alignment method at a given end.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |