Creates a pond from a collection of PondContours.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntaxpublic static ObjectId Create(
Database database,
string pondName,
PondContourCollection contourCollection
)
Public Shared Function Create (
database As Database,
pondName As String,
contourCollection As PondContourCollection
) As ObjectId
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| Exception | Condition |
|---|
| ArgumentException |
Thrown when:
- The name of the pond is empty or invalid.
- The contour collection is null, empty, or contains fewer than two contours.
- 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