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