AssemblyCollectionImportAssembly(String, String, String, Point3d) Method

Imports an Assembly object from an atc file specified by its itemId.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public ObjectId ImportAssembly(
	string assemblyName,
	string atcFilePath,
	string itemId,
	Point3d location
)

Parameters

assemblyName  String
Name of the imported assembly object.
atcFilePath  String
File path of the atc file.
itemId  String
The itemId of the Assembly in atc file. It should not include the brackets.
location  Point3d
Location of the imported Assembly.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  • The assemblyName is invalid or duplicated with existing Assembly.
  • The atc File Path is invalid or the file doesn't exist.
  • The atc file is invalid and failed to load it.
  • itemId is invalid or there is no Assembly in the atc file has the itemId.
See Also