Create Data Reference entity at host drawing according to host database, source database entity name of source drawing and Data Shortcut entity type.
public static ObjectIdCollection CreateReference( Database hostDrawing, Database sourceDrawing, string entityName, DataShortcutEntityType dsEntityType )
Public Shared Function CreateReference ( hostDrawing As Database, sourceDrawing As Database, entityName As String, dsEntityType As DataShortcutEntityType ) As ObjectIdCollection
public: static ObjectIdCollection^ CreateReference( Database^ hostDrawing, Database^ sourceDrawing, String^ entityName, DataShortcutEntityType dsEntityType )
| Exception | Condition |
|---|---|
| System::ArgumentNullException, System::ArgumentException |
1ObjectIdCollection^ objectIds = DataShortcuts.CreateReference(hostDrawing, sourceDrawing, entityName, DataShortcutEntityType.Alignment);