OffsetAssemblyReplaceSubassembly Method

Replaces a subassembly in the assembly with another unassigned subassembly.

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

Parameters

subassemblyId  ObjectId
The ObjectId of the subassembly to be added to replace the target subassembly.
targetSubassemblyId  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.
See Also