SetEdgeReference1 Method


Change the first edge or curve reference.

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

Syntax

C#
public void SetEdgeReference1(
	Reference edgeReference
)
Visual Basic
Public Sub SetEdgeReference1 ( _
	edgeReference As Reference _
)
Visual C++
public:
void SetEdgeReference1(
	Reference^ edgeReference
)

Parameters

edgeReference
Type: Autodesk.Revit.DBReference

Remarks

The referenced element may be any model element, including FamilyInstance, FormElement, or NonPlanarSketch. The reference must be of type ElementReferenceType.REFERENCE_TYPE_LINEAR, and it must correspond to a straight line.

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 →