SetCurve Method


Boundary Conditions Set Curve Method

Sets the curve that defines geometry of the line boundary conditions.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public void SetCurve(
	Curve curve
)

Parameters

curve Curve
Exceptions
Exception Condition
ArgumentException The input curve is not bound.
ArgumentNullException A non-optional argument was null
InvalidObjectException Boundary condition is not a BoundaryConditionsType::Line type.
InvalidOperationException This BoundaryConditions is not a hosted object. -or- This BoundaryConditions is constrained on host.
Remarks
This method works for boundary conditions which are not constrained to their host. This method works with hosted line boundary conditions only. The curve must be bounded.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →