Creates a new TinSurface by cropping from a source TinSurface, and then inserts the new surface into another drawing. You must specify a cropped area with at least one AutoCAD drawing object.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public static ObjectId CreateByCropping( Database destDatabase, string surfaceName, ObjectId srcSurfaceId, ObjectIdCollection objects, Point2d location )
VB
Public Shared Function CreateByCropping ( destDatabase As Database, surfaceName As String, srcSurfaceId As ObjectId, objects As ObjectIdCollection, location As Point2d ) As ObjectId
C++
public: static ObjectId CreateByCropping( Database^ destDatabase, String^ surfaceName, ObjectId srcSurfaceId, ObjectIdCollection^ objects, Point2d location )
Parameters
- destDatabase Database
- The database to insert the new TinSurface into.
- surfaceName String
- The new surface name.
- srcSurfaceId ObjectId
- The ObjectId of the source surface.
- objects ObjectIdCollection
- The objects that specify the cropped area.
- location Point2d
- A location to identify the direction of the cropped area.
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException |
Thrown when:
|
InvalidOperationException | Thrown when srcSurfaceId is in destDatabase. |
SurfaceException | Thrown when this operation failed. |