AlignmentEntityCollectionAddFixedCurve(Int32, Point3d) Method

Creates an AlignmentArc entity defined by a previous entity and a pass-through point.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public AlignmentArc AddFixedCurve(
	int previousEntityId,
	Point3d passThroughPoint
)

Parameters

previousEntityId  Int32
Previous entity identifier.
passThroughPoint  Point3d
Passthrough point of the AlignmentArc entity.

Return Value

AlignmentArc
Example
C#
1Alignment myAlignment = ts.GetObject(res.ObjectId, OpenMode.ForWrite) as Alignment;
2Int32 previousEntityId = myAlignment.Entities.LastEntity;
3Point3d passThroughPoint = new Point3d(7930.2822, 15744.28, 0);
4AlignmentArc retVal = myAlignment.Entities.AddFixedCurve(previousEntityId, passThroughPoint);
5if (retVal == null)
6{
7    ed.WriteMessage("AddFixedCurve failed.");
8}
See Also