---
title: "Locking systems and buildings"
description: "Create, edit and delete locking systems and buildings in portier Vision, and what a repeat import does and does not change on either."
url: https://help.portiervision.com/en/articles/86-locking-systems-and-buildings
collection: "Locking Systems & Keys"
updated: 2026-09-28
language: en
alternates: [de, fr]
---

# Locking systems and buildings

Create, edit and delete locking systems and buildings in portier Vision, and what a repeat import does and does not change on either.

portier Vision calls any set of lockings that belong together a **locking system**. Usually that is a master key system made up of cylinders, single keys and group keys. It can just as well be every display case lock, every padlock, every electrical panel, or an electronic access system. You decide what belongs together and therefore forms a locking system.

Modern systems often include transponders or mechanical keys with a chip attachment. The locking plan shows as a matrix which key opens which cylinder.

The cylinders and readers of a locking system sit in one or more **buildings**. A building is normally a house. A hall on a site or a rented floor in an office complex can be kept as a building of its own if you want to keep them apart.

Locking systems and buildings are two views of the same cylinders. In a locking system you reach every cylinder of that system, whichever building it sits in. In a building you reach every cylinder in that building, whichever system it comes from. What you may see and change is limited by your role.

If you have one locking system and one building, you do not need the rest of this article.

## Switching between a locking system and a building

The status bar at the bottom left shows which view you are in. It reads either `Locking system: <number>, <name>` or `Building: <name>`. The toolbar button carries the same text.

![The status bar at the bottom left shows whether you are in a locking system or a building.](https://staticfiles.gleap.io/g/xRUg93Yv5V8FyI07kajZURt4jz3QL6VONOfJghVvBXPw7bBSnKmNsyN0HV6dEWcZlIpIoJRqO6B.png)

_The status bar at the bottom left shows whether you are in a locking system or a building._

Click **Switch locking system / building**. The **Select locking system in building** window opens with the two tabs **Locking system** and **Building**. Double-click the entry you want. You can also select it with a single click and then click **Next**.

![The Switch locking system / building button in the toolbar.](https://staticfiles.gleap.io/g/C46nqflBRSfR40BnFZxyx6HsHNxOYZFTrnxG1LGgPaB0v78hoy1NDqweFvols22nkFaQRUURjDu.png)

_The Switch locking system / building button in the toolbar._

![The Select locking system in building window with its two tabs.](https://staticfiles.gleap.io/g/32as1MRE4NtrNT5UYhC0r8kpb9NXZfkn1so1YWfp7zFDRSNA1cNyEvpwVllZ4rRb1eJ3PFgBkbG.png)

_The Select locking system in building window with its two tabs._

## Creating a locking system

Your role needs the right to create locking systems. Without it, Vision reports _"Your access role is not sufficient."_ and names the level required. Which level that is, your organisation sets in user management.

You have to be in a locking system to do this, not in a building. In building mode Vision stops with a message and creates nothing. Switch to a locking system first.

1.  Open **Management** and then **Locking Systems**.
    
2.  Click **Add record** in the toolbar. The **Locking system** window opens.
    
3.  Enter the data. Mandatory fields are shown by a bold field label. **Manufacturer** and **Locking system number** are mandatory. If either is missing, Vision reports _"Mandatory field for manufacturer not entered!"_ or _"Mandatory field for system number not entered!"_.
    
4.  Click **Save**, then **Back**.
    

![The Locking system window with the master data, mandatory fields in bold.](https://staticfiles.gleap.io/g/38Nmz44uFepEOZguti9RSAXfwrEWSKt6ONkRkOJIxU5A2cUgCsIa6dHXbmFOOjPRR2bjRF6IHBS.png)

_The Locking system window with the master data, mandatory fields in bold._

![The Save button in the toolbar of the Locking system window.](https://staticfiles.gleap.io/g/nZZqWMUFGKakVGJVOnOCSPYh8aNUTlEZsJbDsk0nh226xYg8gjABpP9UqD6ot9Q2sVHxZLFio5J.png)

_The Save button in the toolbar of the Locking system window._

![The Back button, which leaves the window.](https://staticfiles.gleap.io/g/H9r7kLazWN5fLw8lj5AnAkflQUnUiZkbJ26zdjqLk9WgKqt6y7H6k6ROHJplTtmiPOfhz7e33DT.png)

_The Back button, which leaves the window._

If you leave the window straight through **Back**, Vision asks first. Answer **Yes** and the record is saved as well.

![The prompt Vision shows when you leave through Back.](https://staticfiles.gleap.io/g/jU55tAYFSEkLxsqWaHBPc7ufZ4ycpd2WmSm06W9GOBZhrgwX4nB8yks8H3aOvBzZVdeWPfk8F6R.png)

_The prompt Vision shows when you leave through Back._

Manufacturer and locking system number are more than master data. A later import recognises an existing locking system primarily by these two fields, which is what the section further down is about.

## Creating a building

Create the building under **Management** and then **Buildings**, again through **Add record**. Here too your role needs the matching right.

The **Building name** is the entry that matters most. It is the only feature by which an import recognises a building, and Vision does not check it for uniqueness. Two buildings may carry the same name.

Treat the name as a key. Unique, durable, with the site in it, at most 50 characters. "North plant, hall 3" holds up. "Hall 3" does not.

## Editing and deleting a locking system or building

1.  Open **Management** and then **Locking Systems** or **Buildings**.
    
2.  Click **Start search**. Vision lists every record.
    
3.  Select the entry and click **Edit**, or double-click it. The **Locking system** or **Building** window opens.
    
4.  Click **Edit** again inside the window, change the data, then **Save** and **Back**.
    

![The Start search button, which lists every record.](https://staticfiles.gleap.io/g/7lq18eCiQAK9dXcSvd3SaJmktMAuoly4QRycR3ipJcFKrzpLH2Dk36wtQ7ts6lgty6LZQF8p6gq.png)

_The Start search button, which lists every record._

![The Edit button inside the open window.](https://staticfiles.gleap.io/g/BDS0MuffmsNX4Vjy3q3s5uZKgoiCW3XCFhuOPInQD0erZlVwpAx8c567eu0GcIuuWKvlIgPwE2V.png)

_The Edit button inside the open window._

![The Save and Back buttons after a change.](https://staticfiles.gleap.io/g/EOlqlNFnmkSF9fkvI1xk1a68VKcab5Bm4aPv6DSlPIyg8MjAoEJ3mid8UOVOeHyBYkVaVUkMzRI.png)

_The Save and Back buttons after a change._

Here too Vision saves if you leave through **Back** and answer the prompt with **Yes**.

To delete, click **Delete** inside the window and confirm the prompt with **Yes**. Two cases stop a locking system from being deleted.

-   _"Cannot be deleted; there are still keys handed out for the system!"_ Take the keys back first.
    
-   _"Cannot be deleted; the system is still tied up!"_ The system is still attached to other records.
    

![The Delete button inside the Locking system window.](https://staticfiles.gleap.io/g/1ArDopQFmSOb3BtXDIqSkKp6fC66UvHgpLkuWRef8qBDvvI4lQ2vC7NRHVpabIehtJseXKAsp0z.png)

_The Delete button inside the Locking system window._

![The prompt shown before a record is deleted.](https://staticfiles.gleap.io/g/0o12Y6UcUOibdCOTliRlrc9cfaXkteoYbhlGDlDbAO6QECb2dzK87OYl0XKyYipHMqzg00fmbBa.png)

_The prompt shown before a record is deleted._

![The message shown when keys are still handed out for the system.](https://staticfiles.gleap.io/g/OSaJsAlivhfzp5sT1WiPkxYoYO9SoNUBBvh1uggaKnr82HztNJZ0pHpMBtrp0Uw4ERaNZWMRRBZ.png)

_The message shown when keys are still handed out for the system._

Deleting a building works the same way.

## What a repeat import changes on a locking system and a building

Locking systems rarely reach the database by hand. They come in through portier Vision Companion, tab **Import**, card **portier XML Import** or **KWD Import**. Vision starts the Companion from the **XML locking system import** menu entry. Both cards run through the same processing, so the same applies to locking systems and buildings.

![The data importer in the Companion. Both locking system cards run through the same processing.](https://staticfiles.gleap.io/p69f19d405a24ffe33e3bc1d5/51vmkM5OIB7R30nCZRImpKjMT9qarMfzGdG3J2DkSrrX0BiVBlwteyKKGcZWHlTztNqa58Ev4OY.png)

_The data importer in the Companion. Both locking system cards run through the same processing._

**An existing locking system is recognised but not updated.**

The import first looks for a system with the same **Locking system number** and the same **Manufacturer**. Upper and lower case make no difference. If it finds none, it compares the cylinders in the file against the cylinders in the database. If at least half of them already sit in one system, the import is folded into that system and reports _"Matched an existing system by cylinder identity (x of y); no duplicate created."_ A renamed system is therefore not created a second time.

The master data of the system it found stays as it is. Name, system type, manufacturer and the three remark fields are not taken over from the new file. If you want those fields changed, change them by hand in the **Locking system** window. New keys and cylinders from the file are created, see the article _Locking system data import_.

**Buildings are recognised by name alone.**

A building in the import file counts as known as soon as a building with the same **Building name** exists in the database. Upper and lower case are ignored, nothing else is. Neither street nor town nor the locking system is checked as well, and the search runs across the whole stock, not only across the buildings of the system being imported.

Two things follow for the way you model.

-   Two buildings with the same name collapse into one at import. If two sites are both called "Head office", the cylinders of both land in the first match.
    
-   On a recognised building, street, postcode, town and the remark fields stay unchanged. A corrected address in the import file does not arrive. Those fields you maintain in the **Building** window.
    

## The tabs in the Locking system and Building windows

With a locking system open, four tabs sit in the lower part of the window.

![The four tabs in the lower part of the Locking system window.](https://staticfiles.gleap.io/g/ewzIznDnmaCSfFJM1R424uIsdX5O3Yk7GWYwL6dD6trgg1xCXA3KhTiEiqPe7yzQX0T2pMWdfeg.png)

_The four tabs in the lower part of the Locking system window._

-   **Locking system installed in the following buildings** lists the buildings that hold cylinders of this system, with name, street, postcode and town.
    
-   **Users with access** lists the users allowed to access this system.
    
-   **Roles defined in this locking system** lists the roles with their level and authority level.
    
-   **Statistics** counts keys and cylinders by status, so total, issued, available, lost, faulty and destroyed.
    

![The Statistics tab with keys and cylinders by status.](https://staticfiles.gleap.io/g/mYuPNLtuKMCjUhR8HZex55fdOWQPcetNtmzH2TOg7aJR7iw4CbjgUOka1wcKEb87eJMUUl1LBPR.png)

_The Statistics tab with keys and cylinders by status._

The **Building** window has three tabs. **Installed locking systems** is the counterpart of the first tab above. **Users with access** and **Statistics** follow.
