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

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0

Syntax

C#
public ProfileTangent AddFixedTangent(
	Point2d startPoint,
	Point2d endPoint
)
Visual Basic
Public Function AddFixedTangent ( _
	startPoint As Point2d, _
	endPoint As Point2d _
) As ProfileTangent
Visual C++
public:
ProfileTangent^ AddFixedTangent(
	Point2d startPoint, 
	Point2d endPoint
)

Parameters

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

Remarks

Point2d.X and Point2d.Y are the profile's station and elevation respectively.

Examples

CopyC#
 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