Share

Assembly.ReplaceSubassembly Method

Replaces a subassembly in the assembly with another unassigned subassembly.



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

Syntax

C#

public void ReplaceSubassembly(
	ObjectId subassemblyId,
	ObjectId targetSubassemblyId
)

VB

Public Sub ReplaceSubassembly ( 
	subassemblyId As ObjectId,
	targetSubassemblyId As ObjectId
)

C++

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.
  • The specified target ObjectId is not a subassembly of the assembly.

See Also

Reference

Was this information helpful?