AssemblyCollectionImportAssembly(String, Database, String, Point3d) Method |
Imports an Assembly object from a database with the name of source assembly.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic ObjectId ImportAssembly(
string assemblyName,
Database sourceDatabase,
string sourceAssemblyName,
Point3d location
)
Public Function ImportAssembly (
assemblyName As String,
sourceDatabase As Database,
sourceAssemblyName As String,
location As Point3d
) As ObjectId
public:
ObjectId ImportAssembly(
String^ assemblyName,
Database^ sourceDatabase,
String^ sourceAssemblyName,
Point3d location
)
Parameters
- assemblyName String
- Name of the imported assembly object.
- sourceDatabase Database
- The source database.
- sourceAssemblyName String
- The source assembly name.
- location Point3d
- Location of the imported Assembly.
Return Value
ObjectId
Returns an ObjectId of
Assembly object.
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The assemblyName is invalid or duplicated with existing Assembly.
- The source database doesn't contains an assembly with sourceAssemblyName.
|
See Also