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)
Syntaxpublic static ObjectId ImportRecord<T>(
this Database targetDb,
string sourceFileName,
string recordName,
DuplicateRecordCloning cloning
)
where T : SymbolTable
<ExtensionAttribute>
Public Shared Function ImportRecord(Of T As SymbolTable) (
targetDb As Database,
sourceFileName As String,
recordName As String,
cloning As DuplicateRecordCloning
) As ObjectId
public:
[ExtensionAttribute]
generic<typename T>
where T : SymbolTable
static ObjectId ImportRecord(
Database^ targetDb,
String^ sourceFileName,
String^ recordName,
DuplicateRecordCloning cloning
)
[<ExtensionAttribute>]
static member ImportRecord :
targetDb : Database *
sourceFileName : string *
recordName : string *
cloning : DuplicateRecordCloning -> ObjectId when '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:
ObjectIdThe 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
See Also