Share

LinearDimension.Create Method

Creates a new instance of an Linear Dimension element within the project.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)

Syntax

C#

public static LinearDimension Create(
	Document document,
	View dbView,
	Line line,
	IList<Reference> references
)

Parameters

document  Document
The document where new Linear Dimension is created.
dbView  View
The view in which the Linear Dimension will appear.
line  Line
The line of the annotation
references  IList<Reference>
references that the Linear Dimension will witness.

Return Value

LinearDimension
The newly created Linear Dimension instance, or null if the operation fails.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null

See Also

Reference

Was this information helpful?