AssemblyCollectionImportAssembly(String, Database, String, Point3d) Method

Imports an Assembly object from a database with the name of source assembly.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
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.
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  • The assemblyName is invalid or duplicated with existing Assembly.
  • The source database doesn't contains an assembly with sourceAssemblyName.
See Also