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.DataShortcutsAssembly: AeccDataShortcutMgd (in AeccDataShortcutMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId CreatePartialReferenceSurface(
Database hostDrawing,
string sourceDrawingFilename,
string surfaceName,
ObjectId refBoundaryId
)
Public Shared Function CreatePartialReferenceSurface (
hostDrawing As Database,
sourceDrawingFilename As String,
surfaceName As String,
refBoundaryId As ObjectId
) As ObjectId
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.
ExceptionsException | Condition |
---|
[!: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