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

DirectShape.IsValidReferenceCurve

Method
Description:
Validates that the input curve is suitable for creating a direct shape reference curve. Bounded and unbounded lines are accepted. Other bounded and unbounded curve types with natural bounds are accepted if they are not closed.
Syntax
public static bool IsValidReferenceCurve(
	Curve curve
)
Parameters
Parameter Type Description
curve Curve The curve to test.
Return Value
Type Description
Boolean True if the input curve point can be used to create a direct shape reference curve, false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null