SubassemblyCollectionImportStockSubassembly Method

Imports a stock Subassembly object with its class name.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.7.0.1190
Syntax
public ObjectId ImportStockSubassembly(
	string subassemblyName,
	string className,
	Point3d location
)

Parameters

subassemblyName  String
Subassembly Name used to create subassembly.
className  String
Class name of the subassembly.
location  Point3d
The location of the new created subassembly.

Return Value

ObjectId
Exceptions
ExceptionCondition
[!:System.ArgumentException] Thrown when:
  • The subassemblyName is invalid or an Subassembly with the name is already existing.
  • The className is empty.
Remarks
It will import the corresponding subassembly according to the drawing unit settings.
See Also