How-to guide·Using BIM.worksRequires PREDEFINED_QUERIES

Use the Actions tree

Queries, visualisations, checks, reports, sequences, transactions and compares are all actions in one tree; how to add, run, organise and share them.

An 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 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 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 IDS XML NEW_IDS
Query BQL NEW_QUERY
Visualization BVL NEW_BVL
Sequence BSL BSL
Transaction BUL BUL
Compare BCOL BCOL
Model Check BCL NEW_CHECK
Report BRL BRL
Java check, Java export Java, run in the server sandbox 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 CHAT
ITO an information take-off table NEW_ITO
Viewpoint the camera of the 3D viewer (by default the current view), to fly back to with a click STORE_VIEWPOINTS
Data file a CSV, XLSX, JSON, YAML or text file the other actions can read DATA_FILES
AI Instructions instructions for the assistant 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 Reference; The query languages says which language does what.

Files can also be dropped on a folder: an .ids file becomes an IDS Check (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, 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 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 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.