UndergroundStorageCreate Method |
Creates a new underground storage from Point2d collection and returns its id.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntaxpublic static ObjectId Create(
Database database,
string name,
Point2dCollection points,
double topElevation,
double depth
)
Public Shared Function Create (
database As Database,
name As String,
points As Point2dCollection,
topElevation As Double,
depth As Double
) As ObjectId
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| Exception | Condition |
|---|
| BackwardCompatibilityException |
Thrown when creating underground storage in older drawing.
|
| ForwardCompatibilityException |
Thrown when creating underground storage in newer drawing.
|
| ArgumentException |
Thrown when:
- The name of the underground storage is empty or invalid.
- The boundary points contains unsupported geometry.
- 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