FeatureLineExtendWithFixedCurve(Boolean, Point3d, Point3d) Method |
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.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.9.0.960
Syntaxpublic void ExtendWithFixedCurve(
bool extendFromStart,
Point3d secondPoint,
Point3d targetPoint
)
Public Sub ExtendWithFixedCurve (
extendFromStart As Boolean,
secondPoint As Point3d,
targetPoint As Point3d
)
public:
void ExtendWithFixedCurve(
bool extendFromStart,
Point3d secondPoint,
Point3d targetPoint
)
Parameters
- extendFromStart Boolean
- True to extend from the start point, false to extend from the end point.
- secondPoint Point3d
- The intermediate point that defines the arc's curvature and direction.
- targetPoint Point3d
- The 3D target point where the arc segment should end.
Exceptions| Exception | Condition |
|---|
| ArgumentException |
Thrown when:
- The specified points are invalid or create an invalid arc geometry
- The feature line is closed (closed feature lines cannot be extended)
- The arc cannot be created due to geometric constraints (e.g., collinear points)
|
Example1
2Point3d secondPoint = new Point3d(110.0, 55.0, 0.0);
3Point3d targetPoint = new Point3d(120.0, 60.0, 0.0);
4featureLine.ExtendWithFixedCurve(false, secondPoint, targetPoint);
See Also