Replaces a subassembly in the assembly with another unassigned subassembly.

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

Syntax

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

Parameters

subassemblyId
Type: ObjectId
The ObjectId of the subassembly to be added to replace the target subassembly.
targetSubassemblyId
Type: ObjectId
The ObjectId of the subassembly to be replaced in the assembly.

Exceptions

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

See Also