2025.3 Class
Changes 0
C

Line

Description:
A line in space.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.APIObject
    Autodesk.Revit.DB.GeometryObject
      Autodesk.Revit.DB.Curve
        Autodesk.Revit.DB.Line
public class Line : Curve
Name Return Type Description Inherited From
M Clone() Curve Returns a copy of this curve. (Inherited from Curve ) Curve
M ComputeClosestPoints(Curve, Boolean, Boolean, Boolean, IList<ClosestPointsPairBetweenTwoCurves>) None (Inherited from Curve ) Curve
M ComputeDerivatives(Double, Boolean) Transform Returns the vectors describing the curve at the specified parameter. (Inherited from Curve ) Curve
M ComputeNormalizedParameter(Double) Double Computes the normalized curve parameter from the raw parameter. (Inherited from Curve ) Curve
M ComputeRawParameter(Double) Double Computes the raw parameter from the normalized parameter. (Inherited from Curve ) Curve
M CreateBound(XYZ, XYZ) Line Creates a new instance of a bound linear curve.
M CreateOffset(Double, XYZ) Curve Creates a new curve that is an offset of the existing curve. (Inherited from Curve ) Curve
M CreateReversed() Curve Creates a new curve with the opposite orientation of the existing curve. (Inherited from Curve ) Curve
M CreateTransformed(Transform) Curve Crates a new instance of a curve as a transformation of this curve. (Inherited from Curve ) Curve
M CreateUnbound(XYZ, XYZ) Line Creates a new instance of an unbound linear curve.
M Dispose() None Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject ) APIObject
M Distance(XYZ) Double Returns the shortest distance from the specified point to this curve. (Inherited from Curve ) Curve
M Equals(Object) Boolean Determines whether the specified Object is equal to the current Object . (Inherited from GeometryObject ) GeometryObject
M Evaluate(Double, Boolean) XYZ Evaluates and returns the point that matches a parameter along the curve. (Inherited from Curve ) Curve
M GetEndParameter(Int32) Double Returns the raw parameter value at the start or end of this curve. (Inherited from Curve ) Curve
M GetEndPoint(Int32) XYZ Returns the 3D point at the start or end of this curve. (Inherited from Curve ) Curve
M GetEndPointReference(Int32) Reference Returns a stable reference to the start point or the end point of the curve. (Inherited from Curve ) Curve
M GetHashCode() Int32 Gets the integer value of the geometry object as hash code (Inherited from GeometryObject ) GeometryObject
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M Intersect(Curve) SetComparisonResult Calculates the intersection of this curve with the specified curve. (Inherited from Curve ) Curve
M Intersect(Curve, IntersectionResultArray%) SetComparisonResult Calculates the intersection of this curve with the specified curve and returns the intersection results. (Inherited from Curve ) Curve
M IsInside(Double) Boolean Indicates whether the specified parameter value is within this curve's bounds. (Inherited from Curve ) Curve
M IsInside(Double, Int32%) Boolean Indicates whether the specified parameter value is within this curve's bounds and outputs the end index. (Inherited from Curve ) Curve
M MakeBound(Double, Double) None Changes the bounds of this curve to the specified values. (Inherited from Curve ) Curve
M MakeUnbound() None Makes this curve unbound. (Inherited from Curve ) Curve
M Project(XYZ) IntersectionResult Projects the specified point on this curve. (Inherited from Curve ) Curve
M SetGraphicsStyleId(ElementId) None Sets the graphics style id for this curve. (Inherited from Curve ) Curve
M Tessellate() IList<XYZ> Valid only if the curve is bound. Returns a polyline approximation to the curve. (Inherited from Curve ) Curve
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P ApproximateLength double The approximate length of the curve. (Inherited from Curve ) Curve
P Direction XYZ Returns the direction of the line.
P GraphicsStyleId ElementId The ElementId of the GeometryObject's GraphicsStyle (Inherited from GeometryObject ) GeometryObject
P Id int A unique integer identifying the GeometryObject in its associated non view-specific GeometryElement. (Inherited from GeometryObject ) GeometryObject
P IsBound bool Describes whether the parameter of the curve is restricted to a particular interval. (Inherited from Curve ) Curve
P IsClosed bool Describes whether the curve is closed. (Inherited from Curve ) Curve
P IsCyclic Boolean The boolean value that indicates whether this curve is cyclic. (Inherited from Curve ) Curve
P IsElementGeometry bool Indicates whether this geometry is obtained directly from an Element. (Inherited from GeometryObject ) GeometryObject
P IsReadOnly bool Identifies if the object is read-only or modifiable. (Inherited from APIObject ) APIObject
P Length double The exact length of the curve. (Inherited from Curve ) Curve
P Origin XYZ Returns the origin of the line.
P Period double The period of this curve. (Inherited from Curve ) Curve
P Reference Reference Returns a stable reference to the curve. (Inherited from Curve ) Curve
P Visibility Visibility The visibility. (Inherited from GeometryObject ) GeometryObject