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.2.3892.0
Syntax
C#
public static ObjectIdCollection CreateReference( Database hostDrawing, string sourceDrawingFilename, string entityName, DataShortcutEntityType dsEntityType )
Visual Basic
Public Shared Function CreateReference ( _ hostDrawing As Database, _ sourceDrawingFilename As String, _ entityName As String, _ dsEntityType As DataShortcutEntityType _ ) As ObjectIdCollection
Visual C++
public: static ObjectIdCollection^ CreateReference( Database^ hostDrawing, String^ sourceDrawingFilename, String^ entityName, DataShortcutEntityType dsEntityType )
Parameters
- hostDrawing
- Type: Database
Host Database. The reference entity will be created in this database.
- sourceDrawingFilename
- Type: System.String
Source drawing file name.
- entityName
- Type: System.String
Source entity name.
- dsEntityType
- Type: Autodesk.Civil.DataShortcuts.DataShortcutEntityType
Data Shortcut entity type.
Return Value
The Data Reference object ID;Examples
This example shows how to call this method.
CopyC#
1ObjectIdCollection^ objectIds = DataShortcuts.CreateReference(hostDrawing, sourceDrawingFilename, entityName, DataShortcutEntityType.Alignment);