NetworkMoveParts Method

Moves the specified parts of the network into another network.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public void MoveParts(
	ObjectIdCollection partIds,
	ObjectId dstNetworkId
)

Parameters

partIds  ObjectIdCollection
Object ids of the Parts to be moved.
dstNetworkId  ObjectId
Object id of the destination network.
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  1. Some objects specified by partIds are not Autodesk.Civil.DatabaseServices.Part.
  2. Some objects specified by partIds do not belong to the network.
  3. The object specified by dstNetworkId is not Autodesk.Civil.DatabaseServices.Network.
InvalidOperationException Thrown when:
  1. A part with the same name exists in the destination network.
  2. The source network or destination network is a reference network.
Remarks
No exception is thrown if the source and destination are the same.
See Also