GridVolumeSurfaceCreate(String, ObjectId, ObjectId, Double, Double, Double) Method |
Creates a new instance of a GridVolumeSurface object and adds it to the database where the base surface specified by baseSurfaceId is located.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
string surfaceName,
ObjectId baseSurfaceId,
ObjectId comparisonSurfaceId,
double spacingX,
double spacingY,
double orientation
)
Public Shared Function Create (
surfaceName As String,
baseSurfaceId As ObjectId,
comparisonSurfaceId As ObjectId,
spacingX As Double,
spacingY As Double,
orientation As Double
) As ObjectId
public:
static ObjectId Create(
String^ surfaceName,
ObjectId baseSurfaceId,
ObjectId comparisonSurfaceId,
double spacingX,
double spacingY,
double orientation
)
Parameters
- surfaceName String
- The name of the new GridVolumeSurface.
- baseSurfaceId ObjectId
- The ObjectId of the base surface for the GridVolumeSurface.
- comparisonSurfaceId ObjectId
- The ObjectId of the comparison (top) surface for the GridVolumeSurface.
- spacingX Double
- The x spacing of the GridVolumeSurface.
- spacingY Double
- The y spacing of the GridVolumeSurface.
- orientation Double
- The orientation of the GridVolumeSurface.
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The surfaceName is empty.
- The baseSurfaceId is invalid or its type is not Autodesk.AutoCAD.DatabaseServices.Surface.
- The comparisonSurfaceId is invalid or its type is not Autodesk.AutoCAD.DatabaseServices.Surface.
- The spacingX or spacingY is less than or equal to 0.0.
|
Remarks
This method uses the default style for the surface so you don't need to provide a style ObjectId.
See Also