AssemblyInsertSubassemblyBefore Method

Inserts an unassigned subassembly before a subassembly in the assembly.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public void InsertSubassemblyBefore(
	ObjectId subassemblyId,
	ObjectId targetSubassemblyId
)

Parameters

subassemblyId  ObjectId
The ObjectId of the subassembly to be inserted before the target subassembly.
targetSubassemblyId  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