Skip to main content
Skip table of contents

Edit Room Calculated Attributes

You will need Administration User access to the dRofus database to create calculated attributes. Select Settings at the bottom-left corner, then "Settings" (under Project and Database Administration), then "Rooms":

To create new calculated attributes for Rooms, go to 'Calculated attributes' and then click on 'Add':

  • Name: Name of the new attribute containing the composite text

  • Group: This is the section within the Room Properties Panel where you would like the attribute to be placed under. You can use existing groups like "Classification", or type in a new name - which will create a new group within the Room Properties Panel.

  • Tooltip: Optional help text will be visible when hovering the cursor over the attribute.  

  • Show in property pane: Choose this if you want the composite text attribute to be shown within the Room Properties Panel. In most cases, you would want to have it visible, but in some project cases, the requirement may be to solely sync the text directly to the model without having it visible within dRofus.

  • FormatThe combination of formats with fields is how the calculated attributes come together. Use {0} to refer to the first attribute in the list, {1} to refer to the second attribute, and so on. You may also apply special formatting to attributes that can change the text case, how numbers and dates are represented, select parts of a text, or a text based on a logical condition. 

  • Fields: Select 'Add/remove fields' to add fields to include in the new attribute.

  • Data type: Depending on the formats, the data type you choose is important. The options are Decimal, Integer, Yes/No, Text, and Date.

  • Unit: The unit is optional as it defines a label in the properties pane after your calculated attribute.

Most calculated attributes are designed around numbers, and our default formulas create a bracket around the field {0} when building out a formula. But sometimes, we like to use text, yes/no, or list values. For example, when checking whether two text fields match or both values are True. For these formulas to work, you need to add a single quote around the bracket ‘{0}’ so that we know it should be a string, not a number.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.