Share

SubassemblyCollection.ImportStockSubassembly Method

Imports a stock Subassembly object with its class name.



Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280

Syntax

C#

public ObjectId ImportStockSubassembly(
	string subassemblyName,
	string className,
	Point3d location
)

VB

Public Function ImportStockSubassembly ( 
	subassemblyName As String,
	className As String,
	location As Point3d
) As ObjectId

C++

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

Reference

Was this information helpful?