FeatureLine.ExtendWithFixedLine(Boolean, Point3d) Method

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.



Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.1516

Syntax

C#

public void ExtendWithFixedLine(
	bool extendFromStart,
	Point3d targetPoint
)

VB

Public Sub ExtendWithFixedLine ( 
	extendFromStart As Boolean,
	targetPoint As Point3d
)

C++

public:
void ExtendWithFixedLine(
	bool extendFromStart, 
	Point3d targetPoint
)

Parameters

extendFromStart  Boolean
True to extend from the start point, false to extend from the end point.
targetPoint  Point3d
The 3D target point where the extension line segment should end.

Exceptions

ExceptionCondition
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

Example

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);

See Also

Reference

FeatureLine Class
ExtendWithFixedLine Overload
Autodesk.Civil.DatabaseServices Namespace