Configuration Editor

Gio Siradze
Gio Siradze
  • Updated

The Configuration Editor is the list of settings you fill in whenever something in Simplebim needs parameters — a tool, a dataflow step, an import or export, a settings dialog. The list looks the same everywhere; only the settings in it change, because each tool and dataflow decides what it needs to know. This article explains how the list works and what each kind of setting does.

Three kinds of setting open an editor of their own. Those editors have their own articles:

  • a query setting opens the Query Editor — Query Editor;
  • an expression setting opens the Expression Editor — Expression Editor, and what you can write in it is covered in Expression Syntax;
  • an object selection editor allows you to create object selections using a variety of methods . In the technical sense it is a convenient user interface for a selection string

A regular expression setting opens the regular expression editor, which is described under Regular Expression below.

Where You Meet the Configuration Editor

You never open the Configuration Editor on its own. It is embedded wherever settings are needed:

  • In a dialog with OK and Cancel buttons — the settings of a merge, an import, an export. OK keeps what you entered, Cancel throws it away.
  • Inside another editor, for example the Dataflow Editor, where every step of a dataflow shows its own settings list. There the settings are kept or discarded together with the dataflow.
  • In a window that shows the settings of something you are working on, such as the properties of a group.

Whatever the surroundings, the list itself works the same way. What differs is what happens when you are done, see Keeping or Discarding Your Changes.

Some settings — object selections, queries, expressions, measurements — take their lists and defaults from the model that is open. With no model open those settings still work, but their lists are empty or shorter.

The Editor at a Glance

  1. Target section — some tools start with the settings that say what the tool works on — a target object selection, say. Those settings sit in their own block at the top, shaded in a different colour. Not every tool has one.
  2. Settings — one row per setting: the setting's name on the left, its control on the right.
  3. Headings — a bold line that groups the settings under it. Settings under a heading are indented.
  4. Descriptions — hover over a setting's name or its control and a tooltip shows what the setting is for, when the tool provides a description.

Rows are added by the tool, not by you: the Configuration Editor never has an add button. What you can change is the value of each setting.

What Every Setting Has in Common

A default. Most settings come with a default value from the tool. For settings that you type into, the default is shown as a grey hint while the box is empty, and an empty box means use the default. Clear the box to go back to the default; type something to override it.

A description. Hover over the name or the control to read it.

A place in a group. Settings under a heading belong to that heading. This matters for the next point.

Conditions. A setting can be hidden until another setting has a certain value — the options of an export format appear only after you pick that format. A heading hides with its settings. See Settings That Appear and Disappear.

No checking. The Configuration Editor does not validate what you enter beyond what each control enforces. A number typed into a number box is used as it is; a mandatory setting left empty is reported by the tool when it runs, not by the editor. The editor points out a file name that contains a folder under a named file location: the box turns red, but the value is kept, see File and Folder. It also marks an expression or a regular expression that cannot be used, see Expression and Regular Expression.

The Kinds of Settings

Headings

A heading is a bold line with no control. It only groups the settings below it and hides when all of them are hidden. Its description, if it has one, shows as a tooltip on the heading.

Yes/No

A check box. Ticked means yes.

Choice

A drop-down list of the options the tool offers. Two variants:

  • a fixed choice only lets you pick from the list;
  • an extensible choice also lets you type a value that is not in the list. Use it when the tool says the list is only a set of suggestions.

The list drops down wide enough to show the longest option in full.

Text

A box you type into. Two conveniences:

  • Drag and drop. Drop an object class, a group, a group category, a property or a property value from a palette onto the box, and its name — or value — becomes the text. When what you drop offers more than one text — a class or a category has a name and a key, a property has a name and a value — a menu opens at the cursor and you pick the one you want, or Cancel. A single line of text dragged from any other application, a cell from Excel or a word from a document, say, becomes the text as well; several lines or several cells are refused. Drop a file or a folder from Windows Explorer and its path becomes the text.
  • The default hint. An empty box shows the default in grey and means use the default.

Number and Whole Number

A box for a number. A number setting takes decimals; write them with a dot or with the decimal separator of your Windows settings, both are understood. A whole number setting takes integers. Neither box stops you from typing something that is not a number; the tool will complain when it runs.

Measurement

A value box and a unit drop-down. The list offers every unit of the kind the setting measures — lengths for a length, areas for an area. When a model is open, the unit the model uses is preselected.

Changing the unit converts the value in the box: type 3 with m selected, switch to mm, and the box reads 3000. Convert, then adjust, if the number you have is in a different unit from the one shown.

Colour

A colour box. Click it to open the colour picker and choose. The tool's default colour is shown until you pick another.

3D Point

Three boxes, X, Y and Z, a unit drop-down of length units, and two buttons.

Pick (pipette icon) starts picking in the 3D view: click a point in the model and its coordinates fill the boxes, in the model's length unit. While picking, the button shows a ×; click it to stop without picking.

Paste reads three numbers separated by tabs from the clipboard — three cells copied from a spreadsheet, for example — and puts them into X, Y and Z, in the unit currently shown. Anything else on the clipboard is ignored.

The unit list works like the one of a measurement: changing it converts the three values.

List of Values

A box that holds either one value, which you can simply type, or several values, which you enter through the List Editor:

  • Click the list button at the right end of the box. The List Editor opens in place of the settings; type one value per line and click Apply Changes. With two or more values the box reads 3 Items and can no longer be typed into.
  • Click the × button to clear the box, whether it holds one value or a list.

While the box holds a single value you can drop an object class, a group, a group category, a property or a property value from a palette onto it, and its name — or value — becomes the text; a file or a folder from Windows Explorer gives its path. Several property values dropped from the Properties palette fill the box with all of them, as a list. Unlike a text setting, the box offers no menu and takes no text from other applications.

File and Folder

There are three settings of this family. All start with a file location drop-down on the left, followed by the controls below. The drop-down lists This PC and the named file locations available where you are, for example the locations of the dataflow. The pencil button in it opens the File Locations dialog, where you add locations, rename them and point them at folders, and the location you select there becomes the location of the setting; the dialog is covered in File Location Editor. A location that is not known on this computer — because the configuration came from another machine — is still listed, in red, so that nothing is lost.

When you rename a location in that dialog, every setting that used it follows the new name. When you delete a location, the settings that used it move to This PC with the full path: the folder of the deleted location is put in front of the file name, so the setting keeps pointing at the same file, and a folder setting gets the folder itself. For example, when the location points at C:\temp and the setting holds x.ifc, the setting becomes This PC with C:\temp\x.ifc. A location that has no folder on this computer stays in the setting by its name and is shown in red. The location drop-downs of the other settings, also those of the other steps of a dataflow, follow the changes at once.

What the box next to the location holds depends on the location. Under This PC it holds the full path of the file. Under a named location it holds the name of the file only, because the location is the folder; that is what keeps the setting working when the location points somewhere else on another computer or in Simplebim Cloud.

File to open — a file box and a … button. With This PC selected the button opens the Windows Select file dialog, filtered to the file types the tool accepts, and the box gets the full path. With a named location selected the button opens a dialog that lists the files in the folder of that location, with a Files of type list that narrows them to the types the tool accepts and a File name box where the name can also be typed, and the box gets the name of the file. When the tool accepts several files, the box also has a list button: pick several files in either dialog, or enter their names in the List Editor, and the box reads 3 Items.

File to save — the same file box and … button, opening the Windows Save as dialog for This PC and the Save File As dialog of the location otherwise. In the dialog of a location a name typed without an extension gets the extension the tool expects, and an existing file is replaced only after asking. Right-click the box for a menu that inserts a placeholder that is replaced when the file is written: [MODEL_NAME] for the name of the model, [DATE] for the date and [TIME] for the time — handy for export to [MODEL_NAME].ifc. [DATE] and [TIME] are the date and the time at which the run started, the same in every step of the run, in the short date format and the time format of your Windows regional settings. For a format of your own, type it after a colon, for example [DATE:yyyy-MM-dd] or [TIME:HHmm]. Characters that a file name cannot hold come out as dashes, for example 11-13-2026 and 13-45. A format that is not valid is left as typed, with a warning in the report.

Folder — a folder box and a … button that opens the folder browser. The folder box is only there while the location is This PC; for any other location, the location itself is the folder and the box disappears.

When the folder of a named location is not available on this computer — the location has not been pointed at a folder here, its folder cannot be resolved, or the folder does not exist — the file dialog says so and lists nothing, and the name of the file can still be typed.

You can also type into the file box. Under a named location only a file name is allowed there: a value that contains a folder or a drive — typed, or stored by an earlier version of Simplebim — is accepted but shown in red, and the tooltip of the box tells why. The value is kept until you change it, but a dataflow that contains such a value cannot be published to Simplebim Cloud.

Switching the location keeps the setting pointing at the same file. Going from This PC to a named location drops the folder from the box and keeps the file name; going from a named location back to This PC puts the folder of that location in front of the name, so the box shows the full path of the file the location pointed at. When the location has no folder on this computer, the name stays as it is.

Object Selection

The setting that says which objects. It starts with a style drop-down, and the controls to the right change with the style. The tool decides which styles it offers, and when it offers a single style the style drop-down is left out: a tool that only works on groups, say, shows the Object Group controls straight away. At the far right there is always a Preview button (eye icon): click it to select the objects the setting currently describes in the 3D view and the palettes. With no model open the only style is Raw Value.

All selects All elements, both assemblies and parts. No controls to the right, just the explanation.

Topmost selects Topmost assemblies and single elements. No controls to the right.

Parts selects Assembly parts and single elements. No controls to the right.

Object Class selects the objects of one class. To the right: a drop-down of the classes that have objects the tool can work on; start typing to narrow it, or type a class name that is not in the model.

Object Class List selects the objects of several classes. To the right: the same list with check boxes.

Object Group selects the members of a group, of several groups, or of all groups under a category or parent group. See below.

Object Selection selects a fixed set of objects, remembered by their GlobalId. See below.

Raw Value selects whatever a selection string says. To the right: a text box; see Selection String Format.

Drag and drop works on the style box and on the boxes to its right, with content from the model. Dropped on the style box, or on the explanation next to it, the content picks the style:

  • An object class switches to Object Class with that class, several classes to Object Class List
  • A group to Object Group with that group and its category, several groups to a group list.
  • A category to Object Group with that category selected.
  • Objects to Object Selection.

When more than one of these fits what you dropped — a group also has objects, say — a menu at the cursor lists the choices, Object Group: Walls, Object Selection: 20 and so on, with the one for what you dragged first and Cancel last; the style that is already selected is not offered, because its own boxes take those drops.

Dropped on a box to the right, the content goes straight into that box: the class box takes a class, the class list ticks the dropped classes in addition to those already ticked, the group box takes a group or a category and adds several groups to the current one as an OR list, and the category and parent group buttons and boxes take a category or a parent group.

Object Group

The group row has, from left to right, a category button, a parent group button, the group drop-down and a list button.

The group drop-down lists the groups that have objects the tool can work on, with <all groups> first. Pick one group, type a name — including a name that is not in the model yet — or leave <all groups> to take every group. Groups without such objects are hidden; Show Empty Items, the last item of the list, lists them too, and Hide Empty Items hides them again. The list is rebuilt every time it opens, so a group added a moment ago is there.

The category button turns into a drop-down of group categories: every category the model knows, with sub-categories listed under their parents, the Type of … category of each object class in the model, and the classification systems of the model, such as Uniformat, as categories of their own. Pick one — or type its name or key — and the group list is narrowed to that category, sub-categories included; with <all groups> still selected, the setting takes the whole category. Categories without groups are hidden behind the same Show Empty Items item. The × in the drop-down removes the filter and brings the button back.

The parent group button does the same for parent groups: it lists the groups that have child groups, within the selected category when there is one, and the group list is narrowed to the groups under the one you pick, whatever their own categories. A parent group outside the selected category leaves no groups to pick.

The list button opens the List Editor for several group names, one per line. Back in the row, the group box reads 3 Groups, can no longer be typed into, and gets two extra buttons: a logic button and a ×. The logic button cycles through three ways of combining the groups, shown by its icon:

  • OR — selects the objects that are in any of the groups;
  • AND — selects the objects that are in all of the groups;
  • NOT — selects the objects that are in the first group but in none of the others.

The × drops the list and brings the single-group drop-down back.

Group names may use * and ? as wildcards — Level * takes every group whose name starts with Level.

Object Selection

A fixed list of objects. The row shows Drop Objects Here until it has objects, then 12 Objects. There are three places to drop objects from a palette, marked by their icons.

Set (the label itself) — the dropped objects replace the list.

Add — the dropped objects are added to the list.

Remove — the dropped objects are removed from the list.

The × button empties the list. Objects are remembered by their GlobalId, so the selection survives reloading the model and applies to other models that contain the same objects.

Raw Value

A text box with the selection string that the other styles produce behind the scenes — class-name:wall, group-name:"Level 1" category-name:Storeys, special:topmost and so on. Use it for what the other styles cannot express, or to paste a selection string from elsewhere. The syntax is documented in Selection String Format.

Switching to Raw Value shows the string of whatever was set up in the previous style, so it is also a way to see what a style produces. A raw value that one of the other styles can show is reopened in that style the next time.

Query

Two buttons. Edit Query opens the Query Editor in place of the settings list; the button reads Edit Query (empty) while no query has been defined. Preview — only shown while a model is open — runs the stored query and selects the matching objects, without opening the editor. Building the query is covered in the Query Editor article.

Expression

The expression is shown with syntax colouring — green properties, blue functions, dark red text — on one line, cut with ... when it does not fit. Click into it to edit it in place: while the expression has the focus the row grows to show the whole expression, wrapped over as many lines as it needs, and it goes back to one line when the focus leaves it. Tab and Enter leave it. Click fx to open the Expression Editor in place of the settings list.

While a model is open the expression is checked where it is shown: the piece the expression engine cannot accept is highlighted white on red, the same way the Expression Editor highlights it. The check is repeated as you type and whenever the setting that gives the expression its scope changes — for example the object selection the expression applies to — so an expression can become marked, or unmarked, without being edited. Open it in the Expression Editor to read the message.

Regular Expression

A box for a regular expression, for example the Regular Expression setting of Copy Property Values, with a .* button at its right end. The regular expression is shown with colors on one line, cut with ... when it does not fit. Click into it to edit it in place: while it has the focus the row grows to show the whole regular expression. Tab and Enter leave it. An empty box means use the default.

A regular expression that is not valid is marked in the box. The check needs no open model.

Click .* to open the regular expression editor in place of the settings list. Type test values in the box below the regular expression, one value per line: the part of each value that the tool would take is highlighted, and below the test values the editor tells whether the regular expression is valid. You can also drop property values, or a text property, from the Properties palette on the test values; a text property gives up to 50 of its unique values. The test values are used only in the editor and are not saved with the settings. Apply Changes puts the regular expression back into its setting, Discard Changes keeps the earlier one.

Settings That Appear and Disappear

A tool can attach a condition to a setting: show this only when the format is IFC, only when the "Rename" box is ticked. The Configuration Editor checks the conditions against the current values every time you change a setting, and hides and shows rows accordingly. A heading disappears when every setting under it is hidden and comes back when one of them is shown.

A hidden setting is not gone — it keeps its value and is stored with the rest — it is just not needed with the current choices. If a setting you expect is missing, look for the choice that switches it on; the tool's description of the surrounding settings usually names it.

Keeping or Discarding Your Changes

The Configuration Editor keeps your changes in the list as you make them, but what makes them stick depends on where the list is:

  • In a dialog, click OK to keep everything you entered, or Cancel to throw all of it away. Cancelling also throws away anything applied in a sub-editor while the dialog was open.
  • Inside another editor, the settings are kept or discarded with whatever that editor edits — a dataflow is saved with the values of all its steps.
  • In a window that shows the settings of something, the window's own controls decide.

Two things that do not change with the surroundings:

  • Apply Changes in a sub-editor only puts the query, expression, regular expression or list back into its setting. It does not save anything by itself.
  • There is no undo for individual settings. Retyping a value or clearing it to get the default is how you go back.

Troubleshooting

A setting I expect is not in the list.
It is probably hidden by a condition: another setting has to have a certain value first. Look at the choices and check boxes above it. Headings vanish too when all their settings are hidden.

The box is empty but the tool still uses a value.
An empty box means use the default, and the default is the grey hint shown in the empty box. There is no way to store "nothing" for a setting that has a default; type a value instead.

I typed a number and the tool complains it is not a number.
The editor does not check numbers. Look for letters, a stray unit symbol, or two decimal separators. Both a dot and your Windows decimal separator are accepted in a number setting.

I changed the unit and the value changed with it.
That is intended: the unit list converts the value. Pick the unit first, then type the value.

The Preview of an object selection selects nothing.
The style describes objects that are not in the model: a class name typed by hand, a group that does not exist here, a category filter that leaves no groups, or a list of GlobalIds from another model. Switch to Raw Value to read the selection string the setting produces and compare it with what the model has.

The category or parent group I picked disappeared after I changed the group.
Both filters only narrow the group list, and neither goes away on its own. Use the × in the filter's drop-down to remove a filter deliberately.

The group or category I am looking for is not in the list.
It has no objects the tool can work on, so it is hidden. Click Show Empty Items, the last item of the list, to see it. The list is rebuilt every time it opens, so a group added a moment ago is already there.

The style box of an object selection is missing.
The tool offers only one style, and the row starts with the controls of that style. A value that the style cannot show is shown in a raw value box instead, and the controls of the style come back when you clear the box or change the value into one the style can show.

The box shows only the file name, not the folder I picked.
A named location is selected, and the location is the folder. Together they are the full path. Switch to This PC and the box shows the full path again.

The file box is red.
A named location is selected and the box contains a folder or a drive, typed by hand or stored by an earlier version of Simplebim. Hover over the box to read the reason. Only a file name is allowed there: pick the file with …, or type the name without the folder. The value is kept as it is until you change it, but a dataflow with such a value cannot be published to Simplebim Cloud.

I switched to This PC and the folder in the box is not the one I had before.
Switching from This PC to a named location keeps only the file name, so switching back gives the file in the folder of that location, which is the file the setting pointed at in between. Type or browse to the other folder if that is the one you want.

The … button of a file setting lists no files.
A named location is selected and its folder is not available on this computer: the location has not been pointed at a folder here, its folder cannot be resolved, or the folder does not exist. The dialog says which. Type the name of the file, or point the location at a folder with the pencil button of the drop-down.

The folder box is gone.
A location other than This PC is selected, and that location is the folder. Switch back to This PC to type or browse to a folder.

An expression setting is highlighted in red although I did not touch it.
The expression is re-checked when the setting that gives it its scope changes — typically the object selection above it. Open it with fx to read the message, or fix the selection.

The OK and Cancel buttons of the dialog have vanished.
A sub-editor is open — a query, an expression, a regular expression or a list. Click its Apply Changes or Discard Changes first; the dialog's buttons come back.

I applied a list and the box says "3 Items" and will not let me type.
A box holding several values can only be changed through the List Editor. Click the list button to edit the values, or the × to clear the box and type a single value again.

Release Notes

Simplebim 12.0 SR2

  • A new Regular Expression setting shows the regular expression with colors and marks one that is not valid. Its .* button opens the regular expression editor, where the regular expression can be tried on test values before the tool runs.
  • An expression setting is now edited in place. It shows the expression on one line and grows to show all of it while you edit it, and the expression is checked as you type. The fx button still opens the Expression Editor.
  • The right-click menu of a file to save also inserts [DATE] and [TIME], the date and the time at which the run started. A format of your own is typed after a colon, for example [DATE:yyyy-MM-dd].
  • A file setting under a named file location now holds the name of the file only, never a path. The … button of such a setting lists the files of the folder of the location in a dialog of its own, with a Files of type list and a File name box, instead of opening the Windows dialog. This PC keeps the Windows dialogs and the full path.
  • A file name that contains a folder or a drive under a named file location is shown in red, and the tooltip of the box tells why. The value is kept, but a dataflow with such a value cannot be published to Simplebim Cloud.
  • Switching the file location of a file setting now keeps the setting pointing at the same file: the folder is dropped when you go from This PC to a named location and put back when you return to This PC.
  • In the file dialog of a named location a name typed without an extension gets the extension the tool expects, and an existing file is replaced only after asking.
  • When a file location is deleted, the settings that used it move to This PC with the full path, so they keep pointing at the same files. Earlier, they kept the name of the deleted location.
  • After the file locations are edited with the pencil button, the location drop-downs of all settings, also those of the other steps of a dataflow, list the new locations at once. Earlier, they listed the old locations until the step was collapsed and expanded again.
  • A setting that a saved configuration does not contain now shows its default value instead of keeping the value shown before.
  • A list of values takes several property values dropped from the Properties palette as a list. Earlier, the drop took the object class or the property instead.
  • The Pick button of a 3D point setting takes the picked point again.
  • In the List Editor of the Dataflow Step Configurator, Enter starts a new line. Earlier, Enter closed the dialog.

Simplebim 12.0 SR1

  • The file location drop-down now takes only the width of the selected location, so the file box has more room.
  • Dropping something that offers several texts on a text setting now opens a menu to pick from, for example the name or the key of a class, or the name or the value of a property. A single line of text from any other application, for example an Excel cell, can now be dropped as well.
  • Dropping on the style box of an object selection now offers a menu when more than one style could take the dropped content. The boxes to the right of the style take drops directly: the class list and the group box add dropped classes and groups to those already there, and categories and parent groups can be dropped on their buttons.
  • The category list of an object selection is now built from the classifications of the model: the categories of groups made by the Objects palette or by tools are listed too, sub-categories are listed under their parents, the Type of … categories of the object classes are listed, and the classification systems of the model are listed as categories of their own.
  • Groups, categories and parent groups without objects the tool can work on are now hidden in the lists of an object selection. Show Empty Items at the end of each list shows them, and the lists are rebuilt every time they open.
  • A tool that offers a single style of object selection no longer shows the style drop-down. The raw value box appears only for a value the style cannot show.
  • A parent group is now looked for within the selected category of an object selection. A parent group outside the category leaves no groups to pick and selects nothing; before, the category was ignored when a parent group was given.
  • Applying or discarding an expression no longer leaves the window counting the Expression Editor as still open, which could keep the OK and Cancel buttons of the dataflow editor dialog hidden after the next sub-editor was closed.

Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.