MoveSlotTo Method


Move the circuits in the source slot to the specific slot.

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public void MoveSlotTo(
	int nMovingRow,
	int nMovingCol,
	int nToRow,
	int nToCol
)
Visual Basic
Public Sub MoveSlotTo ( _
	nMovingRow As Integer, _
	nMovingCol As Integer, _
	nToRow As Integer, _
	nToCol As Integer _
)
Visual C++
public:
void MoveSlotTo(
	int nMovingRow, 
	int nMovingCol, 
	int nToRow, 
	int nToCol
)

Parameters

nMovingRow
Type: SystemInt32
The Row Number of cell to be moved.
nMovingCol
Type: SystemInt32
Start Column Number of cell to be moved.
nToRow
Type: SystemInt32
The Row Number of cell to moved to.
nToCol
Type: SystemInt32
End Column Number of cell to moved to.

Remarks

If the moving circuit is in a group, all circuits in the group will be moved accordingly.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The given row number nMovingRow is invalid in Body. -or- The given column number nMovingCol is invalid in Body. -or- The given row number nToRow is invalid in Body. -or- The given column number nToCol is invalid in Body. -or- There is no circuit at given cell (nMovingRow, nMovingCol). -or- Cannot move the circuits at slot (nMovingRow, nMovingCol) to given slot (nToRow, nToCol).

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →