UndergroundStorageCreate Method

Creates a new underground storage from Point2d collection and returns its id.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntax
public static ObjectId Create(
	Database database,
	string name,
	Point2dCollection points,
	double topElevation,
	double depth
)

Parameters

database  Database
Database in which the underground storage is created.
name  String
The name for the new underground storage.
points  Point2dCollection
The Point2d collection to create the underground storage boundary.
topElevation  Double
The top elevation of the underground storage.
depth  Double
The depth of the underground storage.

Return Value

ObjectId
Exceptions
ExceptionCondition
BackwardCompatibilityException Thrown when creating underground storage in older drawing.
ForwardCompatibilityException Thrown when creating underground storage in newer drawing.
ArgumentException Thrown when:
  1. The name of the underground storage is empty or invalid.
  2. The boundary points contains unsupported geometry.
  3. The depth is negative, or greater than 1.2e+7.
Remarks
The boundary points can be used to create a closed and non-intersecting polygon. The last point can be both equal or not equal to the first point.
See Also