API Enhancements

Learn about enhancements to the API.

Updates to the API have been made in the following feature areas:

New in 2027.1

Profile

  • Added new methods to the ProfileEntityCollection class:
    • AddFloatingTangentByGradeAndLength()
    • AddFreeCircularCurveByLength()
    • AddFreeCircularCurveByRadius()
    • AddFreeCircularCurveByThroughPoint()
    • AddFreeSymmetricParabolaByThroughPoint()
    • AddFixedSymmetricParabolaByHighLowPointRadiusAndLength()
    • AddFixedCircularCurveByHighLowPointRadiusAndLength()
  • Added new vertical constraint types to the Autodesk.Civil.DatabaseServices.EntityVerticalConstraintType enum:
    • HighLowPointRadiusAndCurveLength
    • PreviousGradeAndLength
    • NextGradeAndLength

Feature Line

  • Added a GetFlattenCurve() method, which returns a new lightweight polyline representing the feature line geometry projected (flattened) to the XY plane. The caller must dispose of the returned polyline when finished.
  • Added a reverse() method, which reverses the direction of the feature line (start and end swap; curve parameterization is reversed). The feature line must be open for write in the current transaction.

Pond

  • Added a Pond.GetMesh() API for retrieving the mesh geometry of a pond
  • Added two new methods to the StageStorageCollection class:
    • GetAreaAtDepth()
    • GetVolumeAtDepth()

New in 2027

Channels

  • Added a Channel.LongitudinalSlopes API to retrieve all channel longitudinal slopes.
  • Added a Channel.IsLongitudinalSlopesValid API to determine whether channel longitudinal slopes are valid or not.

Stormwater Controls

  • Updated the StormwaterControl.GetInletDetails and StormwaterControl.GetOutletDetails APIs to include info about connected channels.

Pipes

  • Added new APIs to the Autodesk.Civil.DatabaseServices.Pipe for retrieving the start/end connected object ID of a Pipe. The connected object can be a Structure or Stormwater Control.

Data Shortcuts

  • Added API support for Pond data shortcuts.