> For the complete documentation index, see [llms.txt](https://help.qonic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qonic.com/documentation/qonic-application/data-and-collaboration/libraries-panel/codes-library.md). Agents can also search and read this documentation through its [MCP server](https://help.qonic.com/~gitbook/mcp).

# Codes Library

Open the *Codes* library type in the Libraries panel to get an overview of all Code libraries in the project (1). If no libraries are displayed, check if there are any currently active filters (2 and 3). If no filters are active and no libraries are displayed, this means there are no code libraries defined on project level, and the currently opened models contain no code libraries on model level. You can create a new code library by clicking the <kbd>+</kbd> button in the bottom right corner (4). This button is only available when the model is opened for editing.

<figure><img src="https://929210962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZKeCFTBZzqUt4lpmhUdS%2Fuploads%2Fus8g2bqwdA4t77gkyCCd%2FGroup%20649.png?alt=media&amp;token=08ea3a92-e8a5-4f15-9c4a-f79eebce975d" alt="" width="325"><figcaption></figcaption></figure>

Open a library by clicking it; this will display all the codes in this library, and allows you to search on specific codes. If you are not finding the code you are looking for, make sure no filter is active. An active filter is indicated by a green dot over the filter icon. In the filter, choose to *Show* *All* codes or only the codes *Used in Model*.

If any products have been assigned a code, the number of products with this code will be displayed below the code itself. Clicking a code will select all objects with this code or one of its sub-codes. Double-click a code to open its details.

<div data-with-frame="true"><figure><img src="https://929210962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZKeCFTBZzqUt4lpmhUdS%2Fuploads%2FcuoSpsp0gSeizLQYzCBO%2Fimage.png?alt=media&amp;token=206c0de4-0105-44b7-a767-41da92d3e4cd" alt="" width="317"><figcaption></figcaption></figure></div>

Click the ellipsis on the right of a code to *Edit* it, *Select* its objects, *Create sub-entry* or *Delete* it. If its sub-codes are also used, *Select directly assigned* selects only the objects that have this exact code. If you delete a code that is still in use, Qonic asks you to confirm first.

<div data-with-frame="true"><figure><img src="https://929210962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZKeCFTBZzqUt4lpmhUdS%2Fuploads%2FuEKH5OVvJQrkJJ2wjtwZ%2Fimage.png?alt=media&amp;token=536e90a5-ea7a-4918-ad90-96b21cf9c5b0" alt="" width="243"><figcaption></figcaption></figure></div>

Drag a code by its handle to change its order within the same level. In the details of a code, use *Add parent code* or *Edit parent code* to move it to another place in the hierarchy. Codes can also define measurements (*Edit measurements*); see [Codes Libraries](https://help.qonic.com/documentation/qonic-dashboard/libraries/codes-libraries.md) for how they work.

To assign or remove a code to products in the model, use the [Inspect Panel](https://help.qonic.com/documentation/qonic-application/data-and-collaboration/inspect-panel.md).

To create a new code, open a library and click the green <kbd>+</kbd> button in the bottom right corner of the panel (tooltip *Create Code*; not included in the Free plan).
