Share

DataShortcuts.CreatePartialReferenceSurface 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.280

Syntax

C#

public static ObjectId CreatePartialReferenceSurface(
	Database hostDrawing,
	string sourceDrawingFilename,
	string surfaceName,
	ObjectId refBoundaryId
)

VB

Public Shared Function CreatePartialReferenceSurface ( 
	hostDrawing As Database,
	sourceDrawingFilename As String,
	surfaceName As String,
	refBoundaryId As ObjectId
) As ObjectId

C++

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.

1ObjectId objectId = DataShortcuts.CreatePartialReferenceSurface(hostDrawing, sourceDrawingFilename, surfaceName, refBoundaryId);

See Also

Reference

Was this information helpful?