TinSurfaceCreateByCropping(Database, String, ObjectId, ObjectIdCollection, Point2d) Method

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.292
Syntax
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

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  1. The objects' count is 0.
  2. In objects, there are some objects which this method doesn't support.
  3. The surfaceName is empty.
  4. The srcSurfaceId and objects are not in the same database.
InvalidOperationException Thrown when srcSurfaceId is in destDatabase.
SurfaceException Thrown when this operation failed.
Remarks
The supported object types are: Polyline, Polyline2d, Polyline3d, ParcelSegment, FeatureLine, Circle, Arc, Ellipse, and Line.
See Also