Creating hundreds of tasks or BIM links one at a time is slow. Instead, you can export the programme to TSV (tab-separated values) files, edit them in Excel, and import them again. Use this to:
build a programme hierarchy, with many tasks and subtasks, in one go
create search set links for many tasks at once, for example one per zone or per level
add PDS fields to tasks for filtering
back up your BIM links before you refresh the programme, and restore any that are lost
copy or delete links in bulk
This is an advanced feature. Before you start, you should be comfortable with programmes, BIM links and Excel.
Before you start
The project needs a programme. Load one, or create a simple programme with at least one task. See Creating and Managing Programmes.
Check your Programme Exports folder. Files are saved in a subfolder named after the project, inside the Programme Exports folder. You can see or change this folder in Folder Locations.
Load the models you want to link to. Link rows refer to models by name, and the model must be in the scene.
The workflow
Export the programme to TSV files.
Edit the files in Excel. Set the ActionName on each row you want to change.
Import the files. Tobe Builder checks them and lists every change.
Review the changes and click Import.
[GIF: Export TSV, edit in Excel, Import TSV, review and import]
Export
Click the Programme button in the status bar, then click Export TSV.
When Export Succeeded appears, click Open Folder to see the files.
The export creates three files:
File | Contains |
| Every task, with its parent, dates and PDS fields. |
| Every search set link, with one row per rule. |
| Every manual link, with its list of element IDs. |
Note: If Export Failed appears, one of the files is probably open in Excel. Close it and click Retry. If Cannot Export Programme appears, the Programme Exports folder doesn't exist or can't be written to. Check it in Folder Locations.
Action names
The first column of every file is ActionName. It tells Tobe Builder what to do with each row. Exported rows are set to NONE, so nothing changes unless you set an action.
ActionName | What it does |
NONE | Nothing. The row is ignored. |
CREATE | Creates a new task or link. |
UPDATE | Changes an existing task or link to match the row. |
DELETE | Deletes a task or link. |
Action names aren't case-sensitive, so Create and create work too.
Tip: Only set an action on the rows you've changed. For tasks, an UPDATE row that hasn't changed is an error, and it stops the import.
tasks.tsv
Each row is a task.
Column | What it is | Edit it? |
ActionName | What to do with the row. | ✅ |
ParentTaskId | The TaskId of the parent task. Use -1 for a top-level task. | ✅ |
TaskId | The task's unique ID. Tobe Builder uses it to match rows to tasks. New tasks need an ID that isn't already used. | Only for new tasks |
TaskCode | The activity code or ID that people see, for example A1050. | ✅ |
IsCreatedTask | True if the task was created in Tobe Builder. | ❌ Information only |
Name | The task name. | ✅ |
HasResources, HasIfcLinks, HasManualLinks, HasSearchSetLinks | Whether the task has resources or links. | ❌ Information only |
StartDateTime, FinishDateTime | The task's dates. The finish must be after the start. | ✅ |
PDS columns | One column per PDS field, after FinishDateTime. Empty values are shown as | ✅ |
Building a hierarchy
ParentTaskId sets the hierarchy. For example, to break a project into three stages with tasks under each:
ActionName | ParentTaskId | TaskId | Name |
NONE | -1 | 0 | Jigsaw puzzle |
CREATE | 0 | 1 | Stage 1 |
CREATE | 1 | 2 | Piece 1 |
CREATE | 1 | 3 | Piece 2 |
CREATE | 0 | 10 | Stage 2 |
CREATE | 10 | 11 | Piece 9 |
You can create as many levels as you need. Every ParentTaskId must be -1 or the TaskId of a task in the file or the project, and a task can't be its own ancestor.
Adding PDS fields
To add a new PDS field, add a column to the right of the existing columns. The column heading is the field name. Fill in the values and set UPDATE on those rows. You can then filter the Task Timeline by the new field.
Things to know about tasks
Deleting imported tasks has no effect. DELETE only works on Tobe-created tasks. Rows that delete imported tasks are listed in the import window but skipped.
Tasks created with TSV in an imported programme count as imported tasks. You can't rename, move or delete them in Tobe Builder, and the next Refresh deletes them unless the programme file has a task with the same ID. In a programme created in Tobe Builder, all tasks are Tobe-created.
Updating imported tasks is temporary. You can update an imported task's name or dates, but the next Refresh replaces them with the values from the programme file.
Changing dates adjusts the task's content. When an UPDATE row changes a task's dates, its resource keyframes and Tobe-created subtasks are stretched or squashed to fit the new dates.
searchsets.tsv
Each row is one rule of a search set link. A search set with three rules has three consecutive rows with the same TaskId and ModelName. Keep each link's rows together and set the same action on all of them. Use a separate group of rows for each model linked to the task.
Column | What it is |
ActionName | What to do with the link. |
TaskId | The task the link belongs to. Must be a task in |
TaskName, TaskCode | To help you find the task. Rows are matched to tasks by TaskId. |
ModelName | The model to link to. It must match the name of a model in the scene. |
BehaviourType | Construction, Demolition or Temporary. |
TotalFeatureCount | How many elements the complete search set matches at the moment. Information only. |
ClauseFeatureCount | How many elements this rule matches on its own. Information only. |
AnyOfTheseMode | How the two rule groups combine: And or Or. |
SearchSetGroup | AllOfThese (the top group, where elements must match every rule) or AnyOfThese (the bottom group, where elements must match at least one rule). |
PropertyName | The property to check, for example Level. |
Operator | Equals, NotEquals, Contains or DoesNotContain. |
PropertyValue | The value to compare against. Capitalisation is ignored. |
For more about how rules and groups work, see The Search Set Editor.
Example: linking 24 tasks by area
You've created one search set by hand. It links Piece 1 to elements where VB_PDS_Area equals Piece 1. To link the other 23 pieces:
Export, and open
searchsets.tsv.Copy the Piece 1 row 23 times.
On each copy, change TaskId, TaskName and TaskCode to the matching task, and PropertyValue to the matching area.
Set ActionName to CREATE on the new rows.
Save, and import.
[Screenshot: searchsets.tsv in Excel with 23 new CREATE rows]
Tip: With the models loaded, rows with a TotalFeatureCount of 0 are search sets that no longer match any elements, for example after a model update. Filter on this column to find them.
manualsets.tsv
Each row is a manual link.
Column | What it is |
ActionName | What to do with the link. |
TaskId | The task the link belongs to. |
TaskName, TaskCode | To help you find the task. |
ModelName | The linked model. It must match the name of a model in the scene. |
BehaviourType | Construction, Demolition or Temporary. |
EntityIdCount | How many elements are linked. Information only. |
FeatureIds | The IDs of the linked elements. |
Element IDs aren't practical to type by hand. Use this file to copy manual links to other tasks, change their behaviour, or delete them in bulk. An UPDATE with an empty FeatureIds deletes the link.
Links to multiple models
A task can have one search set link and one manual link per model, with links to multiple models. Each link is identified by its type, TaskId and ModelName:
CREATE fails if that task already has a link of that type for that model. Use UPDATE instead.
UPDATE and DELETE fail if that task doesn't have a link of that type for that model. Use CREATE to add it.
To link the same task to another model, use a separate manual row or search set rule group with the same TaskId and the other model's ModelName. Editing or deleting one model's link doesn't change the others.
Editing in Excel
TSV files are plain text, with a tab between each column. They open in Excel and in Notepad.
Keep the column headings. Don't rename, remove or reorder them. You can only add PDS columns to the right of
tasks.tsv.Keep every row complete. Each row must have the same number of columns as the heading row. Tobe Builder stops reading a file at the first blank line or the first row with a different number of columns, and ignores any rows after it.
Check your action names. An action name that isn't recognised, for example a typo, is treated as NONE.
Keep leading zeros. Excel removes leading zeros from codes such as 0010. Before you paste or type codes, format the column as Text.
Keep the date format. Dates use the date and time format from your computer's regional settings. Keep the same format as the exported file. For Australian settings, a custom Excel format of
d/mm/yyyy h:mm AM/PMmatches.Avoid quotation marks. Excel may add quotation marks around values that contain commas. Tobe Builder removes quotation marks from the start and end of each value, but quotation marks inside a value stay.
Avoid line breaks and tabs in cells.
Save as tab-delimited text with the same file name. If Excel warns that some features aren't compatible, keep the current format. Don't save as
.xlsxor.csv.Close the files before you import or export.
Tip: If Excel keeps changing your data, open the file in Notepad, copy everything, and paste it into an Excel sheet whose cells are already formatted as Text. When you've finished, copy it back into Notepad and save.
Import
Click the Programme button, then click Import TSV. You can also click Import in the Export Succeeded window.
The Programme Import window checks the files and lists the changes.
Review the changes. To fix an error, edit the file in Excel and save it. The window checks the files again automatically when you save, or you can click Refresh Files.
When you're happy, click Import.
[Screenshot: Programme Import window with Creations and Updates listed]
Part of the window | What it's for |
Tasks, Search Sets, Manual Links toggles | Choose which files to import. |
Errors | Problems you must fix before you can import. |
Warnings | Things to check. They don't stop the import. |
Creations, Updates, Deletions | The changes that will be made. |
Refresh Files | Reads the files again after you've edited them. |
Import | Makes the changes. It's unavailable if there are errors or nothing to change. |
Open Folder | Opens the folder that holds the files. |
Tasks are imported before links, so you can create tasks and link them in the same import.
The whole import is a single undo step. If the result isn't what you expected, press Ctrl+Z straight away to undo it.
If Tobe Builder can't find any files, No Import Files Found appears with the folder it looked in. The files must be named exactly tasks.tsv, searchsets.tsv and manualsets.tsv.
Common messages
Message | What it means |
...is missing Parent Task | The ParentTaskId isn't -1 or the ID of an existing task or a task in the file. |
...has cyclic Parent Task | The hierarchy loops back on itself, for example a task is its own grandparent. |
...is using a non-unique TaskId | A CREATE row uses a TaskId that already exists. |
...has an invalid StartDateTime or FinishDateTime | The date can't be read, or the finish is before the start. Check the date format. |
...is missing target Task | An UPDATE or DELETE row refers to a task that doesn't exist. |
...is unchanged | An UPDATE row doesn't change anything. For tasks, this is an error. Set the row back to NONE. |
...has no duration. It won't be editable. | The task starts and finishes at the same time. It's a warning only. |
...has changes / ...is a new Task | A NONE row is different from the project. Did you forget to set the ActionName? |
...already exists | A CREATE row is for a task that already has that type of link for that model. Use UPDATE. |
...does not exist yet | An UPDATE or DELETE row is for a task without that type of link for that model. Use CREATE. |
...cannot find target task | The link's TaskId isn't in the project or in |
...cannot find target Model | The ModelName doesn't match a model in the scene. |
