TinVolumeSurfaceCreate(String, ObjectId, ObjectId, ObjectId) Method |
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.7.0.1190
Syntaxpublic static ObjectId Create(
string surfaceName,
ObjectId baseSurfaceId,
ObjectId comparisonSurfaceId,
ObjectId styleId
)
Public Shared Function Create (
surfaceName As String,
baseSurfaceId As ObjectId,
comparisonSurfaceId As ObjectId,
styleId As ObjectId
) As ObjectId
public:
static ObjectId Create(
String^ surfaceName,
ObjectId baseSurfaceId,
ObjectId comparisonSurfaceId,
ObjectId styleId
)
Parameters
- surfaceName String
- The name of the new TinVolumeSurface.
- baseSurfaceId ObjectId
- The ObjectId of the base surface for the TinVolumeSurface.
- comparisonSurfaceId ObjectId
- The ObjectId of the comparison (top) surface for the TinVolumeSurface.
- styleId ObjectId
- The ObjectId of the SurfaceStyle for the TinVolumeSurface.
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 styleId is invalid or its type is not Autodesk.Civil.DatabaseServices.Styles.SurfaceStyle.
|
Remarks
This method takes a SurfaceStyle, specified by styleId, to apply to the newly created surface.
See Also