Create Data Reference entity at host drawing according to host database, source drawing file name, entity name and Data Shortcut entity type.
public 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 )
| Exception | Condition |
|---|---|
| System::ArgumentNullException, System::ArgumentException |
1ObjectIdCollection^ objectIds = DataShortcuts.CreateReference(hostDrawing, sourceDrawingFilename, entityName, DataShortcutEntityType.Alignment);