An automation definition is a reusable Grasshopper tool that creates BIM geometry from an input shape and parameter values.
This guide is for people who develop or maintain those tools. If you only want to use an existing tool, see Getting Started with Automations.
Before you start
You need:
A Grasshopper definition prepared for the Tobe Builder automation service.
The definition saved in .ghx format.
Access to create or edit Automation Definitions.
A suitable project in which to test the output.
The required Rhino, Grasshopper and authoring skills to develop the tool.
A definition that works on a local computer is not automatically compatible with cloud execution. Check required plug-ins and dependencies with the automation service owner.
The current Tobe Builder workflow uses IFC output. A script that only produces a Grasshopper preview mesh is not enough.
Important: A successful generation confirms that the service produced output. It does not confirm that the output is correct for every input or suitable for engineering use.
Plan the definition's inputs
Shape input
Choose the drawing method the user needs:
Shape Input | User interaction |
Line | Places a series of points along a route. It can also be used for a closed boundary when the tool expects one. |
Box | Draws a rectangular shape. |
Polygon | Draws an irregular area. |
Tobe Builder sends the shape's base-outline points through the Points input. The corresponding Grasshopper input is RH_IN:Points.
This is a point list, not a complete GIS terrain mesh. Don't assume the selected drawing method automatically supplies additional values such as box height. Define any other required parameters explicitly.
Other parameters
For each parameter, plan:
Its exact script input name.
A clear user-facing label.
The type and units.
The permitted choices, if it is a dropdown.
An explanation of the reference level, angle convention or other non-obvious meaning.
Use Name to match the script input after RH_IN:. For example, the parameter name Depth corresponds to RH_IN:Depth. Keep spelling and case consistent.
Display Name is the label users see. It can be more descriptive than the script name.
Note: Points is supplied automatically from the drawing tool. Do not redefine it as an ordinary scalar parameter.
Register a new definition
Open Automations.
Select Create Automation Definition.
Enter a unique Definition Name.
Choose Shape Input.
Select the Automation Definition File in .ghx format.
Set Cut Terrain to the appropriate default for new models.
Add the required Parameters.
Review the fields and select Submit.
[Screenshot: New Automation Definition dialog with definition name, shape input, GHX file, Cut Terrain and parameter list labelled]
Definition fields
Field | Purpose |
Definition Name | Identifies the reusable tool in the library. |
Shape Input | Chooses how users supply the input points. |
Automation Definition File | Uploads the Grasshopper definition. Use .ghx, not .gh. |
Cut Terrain | Sets whether newly generated models start with terrain cutting enabled. |
Parameters | Defines the input fields displayed in Automation Settings. |
Important: Definition names identify shared tools. Submitting a definition with an existing name updates that tool; it does not create an independent copy. Use a new unique name for an experimental version.
Parameter fields
Use the + control to add a parameter.
Field | What to enter |
Name | The exact script input name, without the |
Display Name | The label shown to users. |
Type | Float, Int, String or Options. |
Units | The measurement units associated with the value. |
Description | An explanation of what the input means and how it should be used. |
Options | The choices offered when the type is Options. |
Provide usable choices for every Options parameter. Numeric inputs start at zero and text inputs start empty in a new model; don't assume registering the tool provides recommended engineering defaults.
Test the user-facing form, not just the script. A field that accepts a number can still need additional constraints or a clearer explanation.
Test the draft
New definitions start as drafts. They are available to their owner and administrators for testing, rather than immediately appearing as published tools to other users.
Select your definition in Automations.
Enter a small, representative set of inputs.
Draw and accept the shape.
Select Generate.
Wait for the job and BIM loading to complete.
Inspect the model's position, geometry, hierarchy and properties.
Test an IFC download and check it in a receiving application.
A successful run marks the definition as successful. An unpublished successful definition is shown as Draft: Successful.
Before publishing, also test:
More than one shape size and location.
Changes of direction or slope relevant to the tool.
Each dropdown option.
Editing and regenerating an existing model.
The expected terrain-cutting default.
Behaviour when required values are missing or unsuitable.
Use a test project where generated models can be reviewed without affecting live planning work.
Publish the definition
Select the successfully tested draft.
In Actions, choose Publish Automation Definition.
Check that the definition is available to the intended users.
Publication is available to the owner or an administrator with the required definition-editing access, after the definition has generated successfully.
Publishing exposes the tool for use. It does not create models in other projects or regenerate existing models.
[Screenshot: A Draft: Successful definition with Publish Automation Definition available in Actions]
Update an existing tool safely
Changing a definition affects what future generation and download jobs do. Existing models retain their inputs and refer to the tool by name.
For a significant change, a separately named definition is usually easier to test without affecting users of the original.
To update the same definition:
Coordinate the change with its users.
Select the definition and choose Set Automation Definition as Draft if it should be withdrawn during testing.
Choose Edit Automation Definition.
Select the revised .ghx file and review the shape, parameters and terrain-cutting default.
Select Submit.
Generate fresh test models and check existing-input compatibility.
Publish again when the revised tool is ready.
Important: Updating an existing definition does not automatically unpublish it or reset its previous successful status. Use the draft action deliberately and retest the actual changes.
Check changes to parameter names, meanings, shape type or output structure particularly carefully. Existing saved inputs may no longer be appropriate.
Updating the tool does not rebuild all existing BIMs. The new logic is used when someone generates or downloads again, so a later IFC download may differ from an older model still visible in the project.
Download, withdraw or delete a definition
Action | Use it to |
Download Automation Definition | Save the .ghx source for authoring or review, where you have owner/administrator access. |
Set Automation Definition as Draft | Withdraw a published, successfully tested tool from normal library availability. |
Delete in Edit Automation Definition | Remove the reusable definition. This is not the command for deleting one generated BIM. |
Drafting or deleting a definition does not remove its already generated BIM geometry. However, users who can no longer access the definition cannot rely on having its automation-editing and download actions available.
Before removing a shared tool, identify who depends on it and agree on a replacement or retention plan.
Fix common problems
Problem | What to check |
Create or edit actions are unavailable | Check Automation Definitions access and whether you are the owner or an administrator for the selected tool. |
Other users can't see the new tool | It must generate successfully and be published. Drafts are not normally visible to other users. |
Publish is unavailable | Check that a generation completed successfully and that you have permission to manage the definition. |
The input form doesn't match the script | Check parameter names against the |
The script works locally but generation fails | Check cloud compatibility, required plug-ins, input handling and IFC output with the service owner. |
An updated definition is still visible to users | Updating does not automatically put an existing published definition into draft. |
An older model produces different output when downloaded | Download reruns the current definition with that model's saved inputs. It is not a download of an archived script version. |
