FeatureLine.ExtendWithFixedLine(Boolean, Double) Method

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.



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

Syntax

C#

public void ExtendWithFixedLine(
	bool extendFromStart,
	double length
)

VB

Public Sub ExtendWithFixedLine ( 
	extendFromStart As Boolean,
	length As Double
)

C++

public:
void ExtendWithFixedLine(
	bool extendFromStart, 
	double length
)

Parameters

extendFromStart  Boolean
True to extend from the start point, false to extend from the end point.
length  Double
The length of the extension line segment in drawing units (must be greater than zero).

Exceptions

ExceptionCondition
ArgumentException Thrown when: - The length is zero, negative, or below the minimum tolerance - 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 by 25 units from the end point
2featureLine.ExtendWithFixedLine(false, 25.0);

See Also

Reference

FeatureLine Class
ExtendWithFixedLine Overload
Autodesk.Civil.DatabaseServices Namespace