# Swing

This tool has 2 purposes:

* Set Swing direction (Right/Left) for Doors and Windows based on their original direction.
* Assign the door number using the RoomTo.

{% hint style="info" %}
If you check Enable Auto Update the tool will run automatically before using Publish Sheets and Publish Views.
{% endhint %}

<figure><img src="https://4229861674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJXJWi-MF8V2GeaFsM-%2Fuploads%2F6vBkixXS6DwjQNdluot3%2Fimage.png?alt=media&#x26;token=2104f7c0-9dce-4a6a-ba05-88e24df154da" alt=""><figcaption></figcaption></figure>

There is a shared parameter in every door/window family that represents the original direction of the geometry. Type of parameter: **text\_type**, Parameter name: **ALAB\_BIM\_OriginalSwing**, Parameter value: **Left** or **Right**

There is a shared parameter in the model that represents the Left/Right swing direction. This parameter is assigned to the categories of doors and windows. Type of parameter: **text\_instance**, Parameter name: **ALAB\_BIM\_DoorSwing**, Parameter value: **individual**

The correct opening swing direction is assigned for every door/window type in the A-lab tool. There is a project parameter in the model that represents the room number that the door belongs to. Type of parameter: **text\_instance**, Parameter name: **ALAB\_BIM\_Romtilhørighet.** By default this parameter shows 'To room' information, but this can be reversed by assigning 'yes' in the parameter **ALAB\_BIM\_ReverseRoom**. Type of parameter: text\_instance, Parameter name: **ALAB\_BIM\_ReverseRoom**, Parameter value: **Yes** or **No / empty**.

If you want to prevent the renumbering of the door (in case you already handed out an official document) you can lock the value in **ALAB\_BIM\_Romtilhørighet** by assigning 'yes' in the parameter **ALAB\_BIM\_LockedMark**. Type of parameter: text\_instance, Parameter name: **ALAB\_BIM\_LockedMark**, Parameter value: **Yes** or **No / empty**.

{% hint style="info" %}
A Revit template and the shared parameters database can be found under: U:\BIM-Revit\A-lab Revit Library\Mal
{% endhint %}
