SetAnalyticalAlignmentMethod Method


Sets the Alignment Method to the supplied Analytical Alignment Method

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2011

Syntax

C#
public void SetAnalyticalAlignmentMethod(
	AnalyticalAlignmentMethod alignmentMethod
)
Visual Basic
Public Sub SetAnalyticalAlignmentMethod ( _
	alignmentMethod As AnalyticalAlignmentMethod _
)
Visual C++
public:
void SetAnalyticalAlignmentMethod(
	AnalyticalAlignmentMethod alignmentMethod
)

Parameters

alignmentMethod
Type: Autodesk.Revit.DB.Structure AnalyticalAlignmentMethod
Analytical Alignment Method which the Analytical Model should use for alignment.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException alignmentMethod is not valid for this Sketch component.
Autodesk.Revit.Exceptions ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →