Creates a new instance of a TinVolumeSurface and adds it to the database where the 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, ObjectId styleId )
Visual Basic
Public Shared Function Create ( _ surfaceName As String, _ baseSurfaceId As ObjectId, _ comparisonSurfaceId As ObjectId, _ styleId As ObjectId _ ) As ObjectId
Visual C++
public: static ObjectId Create( String^ surfaceName, ObjectId baseSurfaceId, ObjectId comparisonSurfaceId, ObjectId styleId )
Parameters
- surfaceName
- Type: System.String
The name of the new TinVolumeSurface.
- baseSurfaceId
- Type: ObjectId
The ObjectId of the base surface for the TinVolumeSurface.
- comparisonSurfaceId
- Type: ObjectId
The ObjectId of the comparison (top) surface for the TinVolumeSurface.
- styleId
- Type: ObjectId
The ObjectId of the SurfaceStyle for the TinVolumeSurface.
Remarks
This method takes a SurfaceStyle, specified by styleId, to apply to the newly created surface.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException |
Thrown when:
|