DataShortcutsCreateReference(Database, String, String, DataShortcutEntityType) Method |
Create Data Reference entity at host drawing according to host database,
source drawing file name, entity name and Data Shortcut entity type.
Namespace: Autodesk.Civil.DataShortcutsAssembly: AeccDataShortcutMgd (in AeccDataShortcutMgd.dll) Version: 13.7.0.1190
Syntaxpublic static ObjectIdCollection CreateReference(
Database hostDrawing,
string sourceDrawingFilename,
string entityName,
DataShortcutEntityType dsEntityType
)
Public Shared Function CreateReference (
hostDrawing As Database,
sourceDrawingFilename As String,
entityName As String,
dsEntityType As DataShortcutEntityType
) As ObjectIdCollection
public:
static ObjectIdCollection^ CreateReference(
Database^ hostDrawing,
String^ sourceDrawingFilename,
String^ entityName,
DataShortcutEntityType dsEntityType
)
Parameters
- hostDrawing Database
-
Host Database.
The reference entity will be created in this database.
- sourceDrawingFilename String
-
Source drawing file name.
- entityName String
- Source entity name.
- dsEntityType DataShortcutEntityType
- Data Shortcut entity type.
Return Value
ObjectIdCollection
The Data Reference object ID.
ExceptionsException | Condition |
---|
|
System::ArgumentNullException, System::ArgumentException
|
Example
This example shows how to call this method.
1ObjectIdCollection^ objectIds = DataShortcuts.CreateReference(hostDrawing, sourceDrawingFilename, entityName, DataShortcutEntityType.Alignment);
See Also