PondCreate Method

Creates a pond from a collection of PondContours.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntax
public static ObjectId Create(
	Database database,
	string pondName,
	PondContourCollection contourCollection
)

Parameters

database  Database
Database to create the pond in.
pondName  String
The name of the pond.
contourCollection  PondContourCollection
A PondContourCollection containing the contours to initialize the geometry of the pond.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  1. The name of the pond is empty or invalid.
  2. The contour collection is null, empty, or contains fewer than two contours.
  3. A contour in the collection contains unsupported pond geometry.
Remarks
If a pond already exists with the same name as pondName, the name will be adjusted in order to be unique.
See Also