Imports an Assembly object from a database with the name of source assembly.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public ObjectId ImportAssembly(
string assemblyName,
Database sourceDatabase,
string sourceAssemblyName,
Point3d location
) |
Visual Basic |
---|
Public Function ImportAssembly ( _
assemblyName As String, _
sourceDatabase As Database, _
sourceAssemblyName As String, _
location As Point3d _
) As ObjectId |
Visual C++ |
---|
public:
ObjectId ImportAssembly(
String^ assemblyName,
Database^ sourceDatabase,
String^ sourceAssemblyName,
Point3d location
) |
Parameters
- assemblyName
- Type: System..::..String
Name of the imported assembly object.
- sourceDatabase
- Type: Database
The source database.
- sourceAssemblyName
- Type: System..::..String
The source assembly name.
- location
- Type: Point3d
Location of the imported Assembly.
Return Value
Returns an ObjectId of
Assembly object.
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when:
- The assemblyName is invalid or duplicated with existing Assembly.
- The source database doesn't contains an assembly with sourceAssemblyName.
|
See Also