Share

GridVolumeSurface.Create(String, ObjectId, ObjectId, Double, Double, Double, ObjectId) 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.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280

Syntax

C#

public static ObjectId Create(
	string surfaceName,
	ObjectId baseSurfaceId,
	ObjectId comparisonSurfaceId,
	double spacingX,
	double spacingY,
	double orientation,
	ObjectId styleId
)

VB

Public Shared Function Create ( 
	surfaceName As String,
	baseSurfaceId As ObjectId,
	comparisonSurfaceId As ObjectId,
	spacingX As Double,
	spacingY As Double,
	orientation As Double,
	styleId As ObjectId
) As ObjectId

C++

public:
static ObjectId Create(
	String^ surfaceName, 
	ObjectId baseSurfaceId, 
	ObjectId comparisonSurfaceId, 
	double spacingX, 
	double spacingY, 
	double orientation, 
	ObjectId styleId
)

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 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.
styleId  ObjectId
The ObjectId of the style for the GridVolumeSurface.

Return Value

ObjectId

Exceptions

ExceptionCondition
ArgumentException Thrown when :
  1. The surfaceName is empty.
  2. The baseSurfaceId is invalid or its type is not Autodesk.AutoCAD.DatabaseServices.Surface.
  3. The comparisonSurfaceId is invalid or its type is not Autodesk.AutoCAD.DatabaseServices.Surface.
  4. The spacingX or spacingY is less than or equal to 0.0.
  5. The styleId is invalid or its type is not Autodesk.Civil.DatabaseServices.Styles.SurfaceStyle.

Remarks

This method takes a style, specified by styleId, to apply to the newly created surface.

See Also

Reference

Was this information helpful?