Creates a free Symmetric Parabola between two entities with the specified curve length.

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

Syntax

C#
public ProfileParabolaSymmetric AddFreeSymmetricParabolaByLength(
	uint previousEntityId,
	uint nextEntityId,
	VerticalCurveType curveType,
	double length,
	bool preferFlat
)
Visual Basic
Public Function AddFreeSymmetricParabolaByLength ( _
	previousEntityId As UInteger, _
	nextEntityId As UInteger, _
	curveType As VerticalCurveType, _
	length As Double, _
	preferFlat As Boolean _
) As ProfileParabolaSymmetric
Visual C++
public:
ProfileParabolaSymmetric^ AddFreeSymmetricParabolaByLength(
	unsigned int previousEntityId, 
	unsigned int nextEntityId, 
	VerticalCurveType curveType, 
	double length, 
	bool preferFlat
)

Parameters

previousEntityId
Type: System..::..UInt32
The previous entity to attach to.
nextEntityId
Type: System..::..UInt32
The next entity to attach to.
curveType
Type: Autodesk.Civil.DatabaseServices..::..VerticalCurveType
The vertical curve type, crest or sag.
length
Type: System..::..Double
The curve length.
preferFlat
Type: System..::..Boolean
Specifies whether to choose the flat curve if two solutions are available. Steep curve is preferred if preferFlat is false.

Remarks

The parameter curveType is applicable when the parabola is added between two ProfileParabolaSymmetric entities. The parameter preferFlat is applicable when the parabola is added between a ProfileTangent and ProfileparabolaSymmetric entity.

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