---
title: Use the Actions tree
summary: Queries, visualisations, checks, reports, sequences, transactions and compares are all actions in one tree; how to add, run, organise and share them.
order: 50
terms: [action, actions-tree, bql, bvl, bcl, brl, bsl, bul, bcol, ids]
requires: [PREDEFINED_QUERIES]
see-also: [explanation/the-query-languages, how-to/query/run-a-bql-query, how-to/using-bimworks/run-an-ids-check, reference/bql]
notion: https://bimbase.notion.site/Actions-f5b79a27d1f142fb9c6bf43d7ce26e3f
---

# Use the Actions tree

An [[term:action]] is a saved script in one of the BIM.works languages, or an IDS or a data file, stored in a tree and run against the models that are loaded. The **Actions** tab shows that tree; it needs the [[feature:PREDEFINED_QUERIES]] feature flag.

## Before you start

Load the models you want to work on by ticking them in the *Models* tree: an action runs on the loaded set, not on a model you choose afterwards.

## The tree

The root holds your own folders and, next to them, the built-in ones: **Examples** (read-only for everyone but a superadmin; queries, IDS checks and visualisations to copy from), the folder of your **organisation** (shared with its members) and, with [[feature:WORKSPACES]], the folders of your workspaces. The breadcrumb above the tree navigates up; the *Navigate up* arrow goes one level.

## Add an action

Open **Add new…** (the folder-plus button). Each entry is switched on by its own feature flag:

| Entry | Language | Feature flag |
|---|---|---|
| Folder | — | — |
| IDS Check | [[term:ids|IDS]] XML | [[feature:NEW_IDS]] |
| Query | [[term:bql|BQL]] | [[feature:NEW_QUERY]] |
| Visualization | [[term:bvl|BVL]] | [[feature:NEW_BVL]] |
| Sequence | [[term:bsl|BSL]] | [[feature:BSL]] |
| Transaction | [[term:bul|BUL]] | [[feature:BUL]] |
| Compare | [[term:bcol|BCOL]] | [[feature:BCOL]] |
| Model Check | [[term:bcl|BCL]] | [[feature:NEW_CHECK]] |
| Report | [[term:brl|BRL]] | [[feature:BRL]] |
| Java check, Java export | Java, run in the server sandbox | [[feature:JAVA_ACTIONS]], and the sandbox switched on for the instance (`sandbox.enabled`); without both the tree does not list stored Java actions either |
| Chat | a stored conversation with the assistant | [[feature:CHAT]] |
| ITO | an information take-off table | [[feature:NEW_ITO]] |
| Viewpoint | the camera of the 3D viewer (by default the current view), to fly back to with a click | [[feature:STORE_VIEWPOINTS]] |
| Data file | a CSV, XLSX, JSON, YAML or text file the other actions can read | [[feature:DATA_FILES]] |
| AI Instructions | instructions for the assistant | [[feature:AI]] |

A language action opens its editor in the tree itself: write the script, save, and the node appears with the language's colour. The reference for each language is under [[page:reference/bql|Reference]]; [[page:explanation/the-query-languages]] says which language does what.

Files can also be dropped on a folder: an `.ids` file becomes an IDS Check ([[page:how-to/using-bimworks/run-an-ids-check]]), and a file with one of the data-file extensions becomes a data file. Anything else, including IFC files, is refused with a message saying where it belongs.

## Run an action

Click the action. A query fills the *Table* and *JSON* views and highlights its objects in the viewers; a visualisation colours the loaded models; a check and an IDS add their results as child nodes; a report opens in the *Report* view; a sequence opens its frames, numbered and named by their labels, and shows the first in the 3D viewer: click a frame, or use the arrows above the tree, to step through them; a transaction shows its changes for review before they are committed (its editor's *Preview* colours them in the viewer first, [[page:how-to/using-bimworks/preview-a-transaction]]); a compare lists the differences between two versions. Actions that take parameters ask for them first (the parameter button on the row). With [[feature:SELECTION_ACTIONS]], the context menu of a selection in the viewer offers to run an action on the selected objects only.

## Organise

Every node has a menu (the … button): **Like** marks it as a favourite (the heart), *Rename*, *Clear* removes the stored results, *Copy UUID* copies the action's identifier for use in the API, and the version history lists every saved version of the script, to view an older one, run it, or copy it as a new version. With [[feature:IMPORT_EXPORT_ACTIONS]], *Export* writes a folder of actions to a file and *Import* reads one back, which is how actions travel between instances.

## Check

Add a *Query* with `GET attribute.Name WHERE type = IFCWALL`, save it and click it: the *Table* view lists the walls of the loaded models and the walls are highlighted in the 3D viewer.
