Click or drag to resize

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)
Syntax
public static Dictionary<string, ObjectId> ImportRecords<T>(
	this Database targetDb,
	string sourceFileName,
	string pattern,
	DuplicateRecordCloning cloning
)
where 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, ObjectId
A 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
ExceptionCondition
ArgumentNullExceptionThrown if targetDb is null.
See Also