Creates a new TinSurface by cropping from an existing source TinSurface, and then inserts the new surface into another drawing. You must specify the cropped area with at least 3 points.
public static ObjectId CreateByCropping( Database destDatabase, string surfaceName, ObjectId srcSurfaceId, Point2dCollection points )
Public Shared Function CreateByCropping ( destDatabase As Database, surfaceName As String, srcSurfaceId As ObjectId, points As Point2dCollection ) As ObjectId
public: static ObjectId CreateByCropping( Database^ destDatabase, String^ surfaceName, ObjectId srcSurfaceId, Point2dCollection^ points )
| Exception | Condition |
|---|---|
| ArgumentException |
Thrown when :
|
| InvalidOperationException | Thrown when srcSurfaceId is in destDatabase. |
| SurfaceException | Thrown when this operation failed. |