DatabaseExtensionImportRecordsT Method |
Imports SymbolTableRecords whose names match the template supplied from the specified file.
Namespace:
Gile.AutoCAD.R20.Extension
Assembly:
Gile.AutoCAD.R20.Extension (in Gile.AutoCAD.R20.Extension.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic static Dictionary<string, ObjectId> ImportRecords<T>(
this Database targetDb,
string sourceFileName,
string pattern,
DuplicateRecordCloning cloning
)
where T : SymbolTable
<ExtensionAttribute>
Public Shared Function ImportRecords(Of T As SymbolTable) (
targetDb As Database,
sourceFileName As String,
pattern As String,
cloning As DuplicateRecordCloning
) As Dictionary(Of String, ObjectId)
public:
[ExtensionAttribute]
generic<typename T>
where T : SymbolTable
static Dictionary<String^, ObjectId>^ ImportRecords(
Database^ targetDb,
String^ sourceFileName,
String^ pattern,
DuplicateRecordCloning cloning
)
[<ExtensionAttribute>]
static member ImportRecords :
targetDb : Database *
sourceFileName : string *
pattern : string *
cloning : DuplicateRecordCloning -> Dictionary<string, ObjectId> when 'T : SymbolTable
Parameters
- targetDb
- Type: Database
Instance to which the method applies. - sourceFileName
- Type: SystemString
Complete path of the source file. - pattern
- Type: SystemString
WcMatch pattern. - cloning
- Type: DuplicateRecordCloning
Input action for duplicate records.
Type Parameters
- T
- Type of SymbolTable.
Return Value
Type:
DictionaryString,
ObjectIdA dictionary containing the names and ObjectIds of the imported records.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Database. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions
See Also