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.2.3892.0
Syntax
C#
public static ObjectId Create( string surfaceName, ObjectId baseSurfaceId, ObjectId comparisonSurfaceId, double spacingX, double spacingY, double orientation )
Visual Basic
Public Shared Function Create ( _ surfaceName As String, _ baseSurfaceId As ObjectId, _ comparisonSurfaceId As ObjectId, _ spacingX As Double, _ spacingY As Double, _ orientation As Double _ ) As ObjectId
Visual C++
public: static ObjectId Create( String^ surfaceName, ObjectId baseSurfaceId, ObjectId comparisonSurfaceId, double spacingX, double spacingY, double orientation )
Parameters
- surfaceName
- Type: System.String
The name of the new GridVolumeSurface.
- baseSurfaceId
- Type: ObjectId
The ObjectId of the base surface for the GridVolumeSurface.
- comparisonSurfaceId
- Type: ObjectId
The ObjectId of the comparison (top) surface for the GridVolumeSurface.
- spacingX
- Type: System.Double
The x spacing of the GridVolumeSurface.
- spacingY
- Type: System.Double
The y spacing of the GridVolumeSurface.
- orientation
- Type: System.Double
The orientation of the GridVolumeSurface.
Remarks
This method uses the default style for the surface so you don't need to provide a style ObjectId.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException |
Thrown when:
|