ProfileEntityCollectionAddFreeSymmetricParabolaByLength Method

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

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public ProfileParabolaSymmetric AddFreeSymmetricParabolaByLength(
	uint previousEntityId,
	uint nextEntityId,
	VerticalCurveType curveType,
	double length,
	bool preferFlat
)

Parameters

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

Return Value

ProfileParabolaSymmetric
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.
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