4.6.2. LOCK mode – Locking components<br>

### 4.6.2. LOCK mode – Locking components

Locking (immobilising) components is applied to protect them against unintended displacement when pointing to them to append their data.

There are two methods in the graphical editor of locking and protecting components against movement:

1. global – switching on the LOCK mode – all components are locked,

2. local – enables locking selected components only.

Global locking of all components

Using the global method is recommended, as it enables faster locking and unlocking of components.

Global lock of all components is indicated in the LOCK field in the lower right-hand corner of the screen (see section 4.2). Blue letters in that field indicate that the LOCK mode is activated. Grey letters mean that the LOCK mode is disabled.

The LOCK mode does not protect components against deletion. When the LOCK mode is enabled it is possible to mark and delete components – it is only the moving of components that is disabled.

¨ To globally lock or unlock all components in a worksheet:

- click once on the LOCK field in the lower right-hand corner of the screen,

or

- press the Scroll Lock key or Alt+X keys.

As global lock of components is assigned to the Scroll Lock key, which has a LED linked to it on the keyboard, you have an additional indicator of the lock mode.

When saving a project to a disk file, the current setting of the LOCK mode is also saved. You can also specify how the LOCK mode is to be set on opening of a saved file.

¨ To specify how the LOCK mode is to be set on opening of a file:

1. Select “Options / Settings”.

2. Select the “Files” tab.

3. Set the “Lock on open file” field.

There are three options available:

- No change – opening of a file does not change the current LOCK mode setting.

- Same as last edit – the same LOCK mode is set as during last save of the file.

- Lock – movement of components is always locked after opening of a file.

Lock selected components

Local locking enables locking selected components in the drawing. In addition it enables locking vertical movements while allowing horizontal movements.

In the standard program setting there are no buttons on the toolbar representing local locking/unlocking. Under such setting this function is only accessible from the menu. However, the user can append relevant buttons to the toolbar. The procedure is described in section 7.3.3.

¨ To lock / unlock selected components:

1. Mark the component(s).

2. To:
a) completely lock a component, select “Components / Lock component” (Ctrl+B, ),
b) lock component elevation (vertical movements), select “Components / Lock component vertical” ().

3. To unlock components, select “Components / Unlock component” (Ctrl+D, ).

4. Components are now locked / unlocked; this is indicated by a padlock symbol on the component (complete lock) or padlock symbol with vertical arrows (lock vertical).

! If a component is locked locally, it cannot be moved even if the LOCK mode is disabled. You have to unlock the component to be able to move it.