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 void ExtendWithFixedLine( bool extendFromStart, Point3d targetPoint )
Public Sub ExtendWithFixedLine ( extendFromStart As Boolean, targetPoint As Point3d )
public: void ExtendWithFixedLine( bool extendFromStart, Point3d targetPoint )
| Exception | Condition |
|---|---|
| ArgumentException | Thrown when: - The specified point is invalid or too close to existing endpoints - The feature line is closed (closed feature lines cannot be extended) - The extension cannot be performed due to geometric constraints |
1// Extend feature line from the end point to a specific coordinate 2Point3d targetPoint = new Point3d(100.0, 50.0, 0.0); 3featureLine.ExtendWithFixedLine(false, targetPoint);