AreReferencesValidForLinearDimension Method


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

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

Syntax

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

Parameters

document
Type: Autodesk.Revit.DBDocument
The document for the multi-reference annotation.
ownerViewId
Type: Autodesk.Revit.DBElementId
The view in which the multi-reference annotation will appear.
options
Type: Autodesk.Revit.DBMultiReferenceAnnotationOptions
Options containing the references which the dimension will witness.

Return Value

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

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException 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 →