Edge Class

An edge of a 3d solid.
Inheritance Hierarchy

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class Edge : GeometryObject

The Edge type exposes the following members.

Properties
 NameDescription
Public propertyApproximateLengthReturns the approximate length of the edge.
Public propertyCode exampleGraphicsStyleIdThe ElementId of the GeometryObject's GraphicsStyle
(Inherited from GeometryObject)
Public propertyIdA unique integer identifying the GeometryObject in its associated non view-specific GeometryElement.
(Inherited from GeometryObject)
Public propertyIsElementGeometryIndicates whether this geometry is obtained directly from an Element.
(Inherited from GeometryObject)
Public propertyCode exampleIsReadOnlyIdentifies if the object is read-only or modifiable.
(Inherited from APIObject)
Public propertyReferenceReturns a stable reference to the edge.
Public propertyVisibilityThe visibility.
(Inherited from GeometryObject)
Top
Methods
 NameDescription
Public methodAsCurveReturns a curve that corresponds to the edge's parametric orientation.
Public methodAsCurveFollowingFaceReturns a curve that corresponds to this edge as oriented in its topological direction on the specified face.
Public methodComputeDerivativesReturns the vectors describing the edge at the specified parameter.
Public methodDisposeCauses the object to release immediately any resources it may be utilizing.
(Inherited from APIObject)
Public methodEquals Determines whether the specified Object is equal to the current Object.
(Inherited from GeometryObject)
Public methodEvaluateEvaluates a parameter on the edge.
Public methodEvaluateOnFaceEvaluates a parameter on the edge to produce UV coordinates on the face.
Public methodGetCurveUV(Int32)Calculate a 2D curve that represents the edge in the uv-parameter plane of one of the edge's faces. The output curve's direction will follow the parametric direction of the edge, not the topological direction of the edge on the given face.
Public methodGetCurveUV(Int32, Transform2D)Calculate and transform a 2D curve that represents the edge in the uv-parameter plane of one of the edge's faces. The output curve's direction will follow the parametric direction of the edge, not the topological direction of the edge on the given face.
Public methodGetEndPointReferenceReturns a stable reference to the start or the end point of the edge.
Public methodGetFaceReturns one of the two faces that meet at the edge.
Public methodGetHashCode Gets the integer value of the geometry object as hash code
(Inherited from GeometryObject)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsFlippedOnFace(Face)Determines if this edge's topological direction on the Face is opposite to its parametric direction.
Public methodIsFlippedOnFace(Int32)Determines if this edge's topological direction on the Face is opposite to its parametric direction.
Public methodTessellateReturns a polyline approximation to the edge.
Public methodTessellateOnFaceReturns a polyline approximation to the edge in UV parameters of the face.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
Edges are defined by intersections of surfaces that form faces of the solid. They have arbitrary parameterization that is normalized to [0,1].
See Also