PolyLine
A polyline.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.APIObject
Autodesk.Revit.DB.GeometryObject
Autodesk.Revit.DB.PolyLine
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class PolyLine : GeometryObject
The PolyLine type exposes the following members.
Properties
Name
Description
Public Property
Code Example
GraphicsStyleId
The ElementId of the GeometryObject’s GraphicsStyle
(Inherited from GeometryObject)
Public Property
Id
A unique integer identifying the GeometryObject in its associated non view-specific GeometryElement.
(Inherited from GeometryObject)
Public Property
IsElementGeometry
Indicates whether this geometry is obtained directly from an Element.
(Inherited from GeometryObject)
Public Property
Code Example
IsReadOnly
Identifies if the object is read-only or modifiable.
(Inherited from APIObject)
Public Property
NumberOfCoordinates
Gets the number of the coordinate points.
Public Property
Visibility
The visibility.
(Inherited from GeometryObject)
Methods
Name
Description
Public Method
Clone
Returns a copy of this polyline.
Public Method
Static Member
Create
Creates a polyline with coordinate points provided.
Public Method
Dispose
Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject)
Public Method
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from GeometryObject)
Public Method
Evaluate
Evaluates a parameter on the polyline.
Public Method
GetCoordinate
Gets the coordinate point of the specified index.
Public Method
GetCoordinates
Gets the coordinate points of the polyline.
Public Method
GetHashCode
Gets the integer value of the geometry object as hash code
(Inherited from GeometryObject)
Public Method
GetOutline
Gets the outline of the polyline.
Public Method
GetTransformed
Gets the copy of the polyline which is applied the specified transformation.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
A polyline in space is defined by a set of coordinate points.