MoveParts Method

Moves the specified parts of the network into another network.

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

Syntax

C#

public void MoveParts(
	ObjectIdCollection partIds,
	ObjectId dstNetworkId
)

Visual Basic

Public Sub MoveParts ( _
	partIds As ObjectIdCollection, _
	dstNetworkId As ObjectId _
)

Visual C++

public:
void MoveParts(
	ObjectIdCollection^ partIds, 
	ObjectId dstNetworkId
)

Parameters

partIds
Type: ObjectIdCollection
Object ids of the Parts to be moved.
dstNetworkId
Type: ObjectId
Object id of the destination network.

Remarks

No exception is thrown if the source and destination are the same.

Exceptions

ExceptionCondition
System.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.
System.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.

See Also