RVTDocs.com
Namespace: Autodesk.Revit.DB Class: CurveElement

CurveElement.SetGeometryCurve

Method
Description:
Sets the geometry of the curve element. After the curve geometry is set, other nearby curves may join to the new curve geometry.
Syntax
public void SetGeometryCurve(
	Curve curve,
	bool overrideJoins
)
Parameters
Parameter Type Description
curve Curve The new curve.
overrideJoins Boolean An option to specify whether or not existing joins will affect setting the geometry of the CurveElement. Setting this parameter to false is essentially the same as directly setting the <a href="713ec948-c85c-24fa-0668-c2c2bbdc4c73.htm">GeometryCurve</a> property.
Return Value
Exceptions
Exception Condition
ArgumentNullException Thrown if the argument is.
ArgumentException Thrown if the input curve is of a type different from the current. -- or -- Thrown if the input curve is bound and the current is not or vice versa. -- or -- Thrown if the input curve is helical. -- or -- Thrown if the input curve lies outside of the SketchPlane of the current curve and the CurveElement is not CurveByPoints.