Lock your user interface with LOCKUI system variable
Print This Post
![]() |
Author | Murat Saraldı |
| Profession | Mechanical Technician | |
| AutoCAD Instructor | ||
| Location | Izmir, TURKEY | |
Greetings to all,
It may sometimes be very annoying when toolbars which you get used to are changed in your office. That is because locking them may seems to be the most efficient method to overcome this problem.
Commad: LOCKUI
When you run LOCKUI command (actually it is a system var), a value between 0 to 15 is being requested. Let us apply locked and unlocked values through these values. All movements are possible for the value ‘0’.
Setting the value as ‘0’ after running Lockui command, all toolbar movements are enabled.
![]()
Figure.1
You can observe the toolbar’s active status from the two vertical lines located on the left. All toolbars’ locations can be changed as you wish.
Command : LOCKUI
If you enter ‘15’ after running the command, all toolbars will be locked for editing and seen like the figure below.
![]()
Figure.2
The two vertical lines are no more exist which means that the toolbar is locked.
I have explained values ‘0’ and ‘15’ among the ‘0-15’ range for toolbars. You can check the remaining ones if you want some different toolbar options. You can also access Help Menu by pressing ‘F1’ after running the command.
Regards.
Editor’s Note:
Toolbars and windows on AutoCAD screen (Properties, design center etc.) can be fixed by means of LOCKUI system variable.
You can use the values listed below for different control modes to be fixed.
- 0 : Toolbars are windows are active.
- 1 : Only toolbars attached on sides are locked.
- 2 : Only windows attached on sides are locked.
- 4 : Only free toolbars are locked.
- 8 : Only free windows are locked.
If you want to lock multiple options listed above, the corresponding values should be added and assigned to the Lockui system variable.
For instance, let us assume we want to lock only free toolbars and windows. The corresponding values to lock these are ‘4’ and ‘8’ respectively. Sum of them is ‘12’ and by assigning it to the Lockui system variable the process is completed.
You do not have to change Lockui system variable again to move locked controls, instead you can move them by holding ‘Ctrl’ button.
Related Articles:
Technorati Tags:
Similar Posts
Rate this article:

