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.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic 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
)
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
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The objects' count is 0.
- In objects, there are some objects which this method doesn't support.
- The surfaceName is empty.
- 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