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.
public static ObjectId CreateByCropping( Database destDatabase, string surfaceName, ObjectId srcSurfaceId, ObjectIdCollection objects, Point2d location )
Public Shared Function CreateByCropping ( destDatabase As Database, surfaceName As String, srcSurfaceId As ObjectId, objects As ObjectIdCollection, location As Point2d ) As ObjectId
public: static ObjectId CreateByCropping( Database^ destDatabase, String^ surfaceName, ObjectId srcSurfaceId, ObjectIdCollection^ objects, Point2d location )
| Exception | Condition |
|---|---|
| ArgumentException |
Thrown when:
|
| InvalidOperationException | Thrown when srcSurfaceId is in destDatabase. |
| SurfaceException | Thrown when this operation failed. |