< Civ API Docs

FeatureLine Methods

The FeatureLine type exposes the following members.

Methods
 NameDescription
Public methodAssignElevationsFromSurface Assigns elevations from surface.
Public methodComputeFingerPrint Compute FingerPrint of the Entity.
(Inherited from Entity)
Public methodStatic memberCreate(String, ObjectId) Creates a FeatureLine from the specified Line, Arc, Polyline, Polyline2d or Polyline3d.
Public methodStatic memberCreate(String, ObjectId, ObjectId) Creates a FeatureLine from the specified Line, Arc, Polyline, Polyline2d or Polyline3d.
Public methodDeleteElevationPoint Deletes an elevation point along the FeatureLine.
Public methodDeleteElevationPoints Deletes elevation points along the FeatureLine.
Public methodDeletePIPoint Deletes a PI point along the FeatureLine.
Public methodCode exampleExtendWithFixedCurve(Boolean, Point3d) Extends the feature line with a curved arc segment to the specified target point. This method adds a new fixed arc segment to either the beginning or end of the feature line, creating a smooth curve from the current start/end point to the specified target point. The arc is automatically calculated based on the current tangent direction and target point. The method determines the optimal arc geometry to create a smooth transition.
Public methodCode exampleExtendWithFixedCurve(Boolean, Point3d, Point3d) Extends the feature line with a curved arc segment defined by three points. This method adds a new fixed arc segment to either the beginning or end of the feature line, creating a smooth curve that passes through the specified second point and ends at the target point. The arc is calculated using the three-point arc definition method, providing precise control over the arc's curvature and direction. This is useful when you need to create arcs with specific geometric constraints.
Public methodCode exampleExtendWithFixedLine(Boolean, Point3d) Extends the feature line with a straight line segment to the specified target point. This method adds a new fixed linear segment to either the beginning or end of the feature line, connecting the current start/end point to the specified target point. The extension creates a fixed line segment that becomes part of the feature line's geometry. This is useful for extending feature lines to specific coordinates or connecting to other objects.
Public methodCode exampleExtendWithFixedLine(Boolean, Double) Extends the feature line with a straight line segment of specified length. This method adds a new fixed linear segment to either the beginning or end of the feature line, extending in the current direction by the specified distance. The extension direction is determined by the tangent direction at the start or end point. For smoothed feature lines, the extension follows the smoothed curve's tangent direction.
Public methodGet3dDistanceAtPoint Gets the 3d distance at given point along the FeatureLine.
Public methodGetBulge Gets the bulge at the index of feature line's segment.
Public methodGetCurveRadius Gets the radius at the index of feature line's curve.
Public methodGetDeflectionAngleAtPoint Gets the deflection angle in radians at given point along the FeatureLine.
Public methodGetFlattenCurve Gets a new lightweight polyline representing the feature line geometry projected to the XY plane (flattened), as defined by the native feature implementation. The caller must dispose the returned polyline when finished.
Public methodGetGradeInAtPoint Gets the in grade at given point along the FeatureLine.
Public methodGetGradeOutAtPoint Gets the out grade at given point along the FeatureLine.
Public methodGetPointRelativeElevation Returns the point's elevation, depending on the absolute or relative mode. Use the IsElevationRelativeToSurface() method to determine the elevation type.
Public methodGetPoints Gets the feature line points by type.
Public methodCode exampleGetReferenceInfo For Data Shortcut reference entity (IsReferenceObject == true), gets the entity's reference information.
(Inherited from Entity)
Public methodInsertElevationPoint Inserts an elevation point along the FeatureLine.
Public methodInsertElevationPoints Inserts multiple elevation points along the FeatureLine.
Public methodInsertPIPoint Inserts a PI point along the FeatureLine.
Public methodIsElevationRelativeToSurface Gets whether the point's elevation is absolute, or relative to the surface. Returns true when it's relative to the surface, false when it's an absolute elevation.
Public methodStatic memberMoveToNoneSite Move FeatureLine to none Site.
Public methodStatic memberMoveToSite Move FeatureLine to another Site.
Public methodReverse Reverses the direction of the feature line (start and end swap; curve parameterization is reversed). The feature line must be open for write in the current transaction.
Public methodSetBulge Sets the bulge at the index of feature line's segment.
Public methodSetCurveRadius Sets the radius at the index of feature line's curve.
Public methodSetPointElevation Set an elevation to existing Feature Point.
Public methodSetPointRelativeElevation Sets a point's elevtion, with the elevation value specified either as an absolute elevation, or a relative to surface elevation.
Top
See Also