AlignmentEntityCollectionAddFixedCurve(Int32, Point3d) Method |
Creates an AlignmentArc entity defined by a previous entity and a pass-through point.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic AlignmentArc AddFixedCurve(
int previousEntityId,
Point3d passThroughPoint
)
Public Function AddFixedCurve (
previousEntityId As Integer,
passThroughPoint As Point3d
) As AlignmentArc
public:
AlignmentArc^ AddFixedCurve(
int previousEntityId,
Point3d passThroughPoint
)
Parameters
- previousEntityId Int32
- Previous entity identifier.
- passThroughPoint Point3d
- Passthrough point of the AlignmentArc entity.
Return Value
AlignmentArc
Example1Alignment 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