AreReferencesValidForLinearFixedDimension Method


If the DimensionStyleType is LinearFixed, validates that the references are valid for an aligned multi-reference annotation.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2014

Syntax

C#
public static bool AreReferencesValidForLinearFixedDimension(
	Document document,
	ElementId ownerViewId,
	MultiReferenceAnnotationOptions options
)
Visual Basic
Public Shared Function AreReferencesValidForLinearFixedDimension ( _
	document As Document, _
	ownerViewId As ElementId, _
	options As MultiReferenceAnnotationOptions _
) As Boolean
Visual C++
public:
static bool AreReferencesValidForLinearFixedDimension(
	Document^ document, 
	ElementId^ ownerViewId, 
	MultiReferenceAnnotationOptions^ options
)

Parameters

document
Type: Autodesk.Revit.DB Document
The document for the multi-reference annotation.
ownerViewId
Type: Autodesk.Revit.DB ElementId
The view in which the multi-reference annotation will appear.
options
Type: Autodesk.Revit.DB MultiReferenceAnnotationOptions
Options containing the references which the dimension will witness.

Return Value

True DimensionStyleType does not equal LinearFixed or if an aligned multi-reference annotation can be created from the references.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

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 →