DataShortcutsCreatePartialReferenceSurface Method

Creates a partial reference surface with a specified boundary in the host drawing according to the host database, source drawing file name, surface name, and boundary object ID.

Namespace: Autodesk.Civil.DataShortcuts
Assembly: AeccDataShortcutMgd (in AeccDataShortcutMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId CreatePartialReferenceSurface(
	Database hostDrawing,
	string sourceDrawingFilename,
	string surfaceName,
	ObjectId refBoundaryId
)

Parameters

hostDrawing  Database
The host database. The partial reference surface will be created in this database.
sourceDrawingFilename  String
The source drawing file name.
surfaceName  String
The name of the source surface.
refBoundaryId  ObjectId
A simplified, non-self-intersecting polygon object id in the host database.

Return Value

ObjectId
The object ID of the partial reference surface.
Exceptions
ExceptionCondition
[!:System.ArgumentException] Thrown when the reference boundary is not a simplified, non-self-intersecting polygon.
Example
This example demonstrates how to call this method.
C#
1ObjectId objectId = DataShortcuts.CreatePartialReferenceSurface(hostDrawing, sourceDrawingFilename, surfaceName, refBoundaryId);
See Also