C

Curve

Description:
A parametric curve.
Remarks:
The concrete curves are defined by parametric equations. If the curve is bound, it is only defined for an interval in parameterization. Otherwise, it is defined for all values of the parameter.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.APIObject
    Autodesk.Revit.DB.GeometryObject
      Autodesk.Revit.DB.Curve
        Autodesk.Revit.DB.Arc
        Autodesk.Revit.DB.CylindricalHelix
        Autodesk.Revit.DB.Ellipse
        Autodesk.Revit.DB.HermiteSpline
        Autodesk.Revit.DB.Line
        Autodesk.Revit.DB.NurbSpline
public class Curve : GeometryObject
Name Return Type Description Inherited From
M Clone() Curve Returns a copy of this curve.
M ComputeClosestPoints(Curve, Boolean, Boolean, Boolean, IList<ClosestPointsPairBetweenTwoCurves>) None Find the closest points between two curves. Closest points mean closest pairs of points, each pair consisting of a point on this, say P1, and a point on other curve, say P2. P1 and P2 are closest locally.
M ComputeDerivatives(Double, Boolean) Transform Returns the vectors describing the curve at the specified parameter.
M ComputeNormalizedParameter(Double) double Computes the normalized curve parameter from the raw parameter.
M ComputeRawParameter(Double) double Computes the raw parameter from the normalized parameter.
M CreateOffset(Double, XYZ) The new curve. Creates a new curve that is an offset of the existing curve.
M CreateReversed() The new curve. Creates a new curve with the opposite orientation of the existing curve.
M CreateTransformed(Transform) The new curve. Crates a new instance of a curve as a transformation of this curve.
M Distance(XYZ) double Returns the shortest distance from the specified point to this curve.
M Evaluate(Double, Boolean) XYZ Evaluates and returns the point that matches a parameter along the curve.
M GetEndParameter(Int32) The parameter. Returns the raw parameter value at the start or end of this curve.
M GetEndPoint(Int32) The curve endpoint. Returns the 3D point at the start or end of this curve.
M GetEndPointReference(Int32) nullNothingnullptr Returns a stable reference to the start point or the end point of the curve.
M Intersect(Curve) SetComparisonResult Calculates the intersection of this curve with the specified curve.
M Intersect(Curve, IntersectionResultArray%) SetComparisonResult Calculates the intersection of this curve with the specified curve and returns the intersection results.
M IsInside(Double) bool Indicates whether the specified parameter value is within this curve's bounds.
M IsInside(Double, Int32%) bool Indicates whether the specified parameter value is within this curve's bounds and outputs the end index.
M MakeBound(Double, Double) None Changes the bounds of this curve to the specified values.
M MakeUnbound() None Makes this curve unbound.
M Project(XYZ) IntersectionResult Projects the specified point on this curve.
M SetGraphicsStyleId(ElementId) None Sets the graphics style id for this curve.
M Tessellate() IList<XYZ> Valid only if the curve is bound. Returns a polyline approximation to the curve.
M Dispose() None Causes the object to release immediately any resources it may be utilizing. APIObject
M op_Equality(GeometryObject, GeometryObject) bool Determines whether two GeometryObjects are the same. GeometryObject
M Equals(Object) bool Determines whether the specified is equal to the current . GeometryObject
M GetHashCode() int Gets the integer value of the geometry object as hash code GeometryObject
M op_Inequality(GeometryObject, GeometryObject) bool Determines whether two GeometryObjects are different. GeometryObject
Name Return Type Description Inherited From
P ApproximateLength double The approximate length of the curve.
P IsBound bool Describes whether the parameter of the curve is restricted to a particular interval.
P IsClosed bool Describes whether the curve is closed.
P IsCyclic bool The boolean value that indicates whether this curve is cyclic.
P Length double The exact length of the curve.
P Period double The period of this curve.
P Reference Reference Returns a stable reference to the curve.
P IsReadOnly bool Identifies if the object is read-only or modifiable. APIObject
P GraphicsStyleId ElementId The ElementId of the GeometryObject's GraphicsStyle GeometryObject
P Id int A unique integer identifying the GeometryObject in its associated non view-specific GeometryElement. GeometryObject
P IsElementGeometry bool Indicates whether this geometry is obtained directly from an Element. GeometryObject
P Visibility Visibility The visibility. GeometryObject