Click or drag to resize

DatabaseExtensionImportRecordT Method

Imports the symbol table record 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 ObjectId ImportRecord<T>(
	this Database targetDb,
	string sourceFileName,
	string recordName,
	DuplicateRecordCloning cloning
)
where T : SymbolTable

Parameters

targetDb
Type: Database
Instance to which the method applies.
sourceFileName
Type: SystemString
Complete path of the source file.
recordName
Type: SystemString
Name of the record to import.
cloning
Type: DuplicateRecordCloning
Input action for duplicate records

Type Parameters

T
Type of SymbolTable.

Return Value

Type: ObjectId
The ObjectId of the imported record; ObjectId.Null if cloning failed.

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