SetLockSlot Method


Set lock state for a circuit slot at specific cell.

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

Syntax

C#
public void SetLockSlot(
	int nRow,
	int nCol,
	bool bLock
)
Visual Basic
Public Sub SetLockSlot ( _
	nRow As Integer, _
	nCol As Integer, _
	bLock As Boolean _
)
Visual C++
public:
void SetLockSlot(
	int nRow, 
	int nCol, 
	bool bLock
)

Parameters

nRow
Type: SystemInt32
Row Number
nCol
Type: SystemInt32
Column Number
bLock
Type: SystemBoolean
Lock state to set

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 →