Inserts an unassigned subassembly before a subassembly in the assembly.

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

Syntax

C#
public void InsertSubassemblyBefore(
	ObjectId subassemblyId,
	ObjectId targetSubassemblyId
)
Visual Basic
Public Sub InsertSubassemblyBefore ( _
	subassemblyId As ObjectId, _
	targetSubassemblyId As ObjectId _
)
Visual C++
public:
void InsertSubassemblyBefore(
	ObjectId subassemblyId, 
	ObjectId targetSubassemblyId
)

Parameters

subassemblyId
Type: ObjectId
The ObjectId of the subassembly to be inserted before the target subassembly.
targetSubassemblyId
Type: ObjectId
The ObjectId of the subassembly before which a new subassembly is inserted.

Exceptions

ExceptionCondition
[!:System.ArgumentException] Thrown when:
  • The specified ObjectId to be inserted is not an unassigned subassembly id, or from another database.
  • The specified target ObjectId is not a subassembly of the assembly.

See Also