FeatureLineExtendWithFixedLine(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.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.9.0.960
Syntaxpublic void ExtendWithFixedLine(
bool extendFromStart,
double length
)
Public Sub ExtendWithFixedLine (
extendFromStart As Boolean,
length As Double
)
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| Exception | Condition |
|---|
| 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
|
Example1
2featureLine.ExtendWithFixedLine(false, 25.0);
See Also