ProfileEntityCollectionAddFixedTangent(Point2d, Point2d) Method

Creates a fixed Tangent defined by 2 pass-through points.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public ProfileTangent AddFixedTangent(
	Point2d startPoint,
	Point2d endPoint
)

Parameters

startPoint  Point2d
The first pass-through point.
endPoint  Point2d
The second pass-through point.

Return Value

ProfileTangent
Remarks
Point2d.X and Point2d.Y are the profile's station and elevation respectively.
Example
C#
 1// Now add the entities that define the profile.
 2Profile oProfile = ts.GetObject(oProfileId, OpenMode.ForRead) as Profile;
 3
 4Point3d startPoint = new Point3d(oAlignment.StartingStation, -40, 0);
 5Point3d endPoint = new Point3d(758.2, -70, 0);
 6ProfileTangent oTangent1 = oProfile.Entities.AddFixedTangent(startPoint, endPoint);
 7
 8startPoint = new Point3d(1508.2, -60.0, 0);
 9endPoint = new Point3d(oAlignment.EndingStation, -4.0, 0);
10ProfileTangent oTangent2 = oProfile.Entities.AddFixedTangent(startPoint, endPoint);                
11
12oProfile.Entities.AddFreeSymmetricParabolaByLength(oTangent1.EntityId, oTangent2.EntityId, VerticalCurveType.Sag, 900.1, true);
See Also