Moves the specified parts of the network into another network.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic void MoveParts(
ObjectIdCollection partIds,
ObjectId dstNetworkId
)
Public Sub MoveParts (
partIds As ObjectIdCollection,
dstNetworkId As ObjectId
)
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.
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- Some objects specified by partIds are not Autodesk.Civil.DatabaseServices.Part.
- Some objects specified by partIds do not belong to the network.
- The object specified by dstNetworkId is not Autodesk.Civil.DatabaseServices.Network.
|
InvalidOperationException |
Thrown when:
- A part with the same name exists in the destination network.
- 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