This functionality is only available for certain module packages. Info / Copyright

Dialog Format: Calculation

In this dialog you can use format elements to compile a calculation formula. To this purpose project data as well as the parts data of the parts stored in the project are available in the form and plot frame editor. During the configuration of user-defined block properties only project data is offered since these properties are stored project-specifically. User-defined properties for the parts management or for part references cannot be defined as block properties. The data determined via the calculation formula can be displayed in the project or output in reports.

Overview of the main dialog elements:

Available format elements:

This field shows all format elements that can be part of a calculation formula. To load a format element for the calculation formula into the Selected format elements field, select it and then click ( Move to the right).

Selected format elements:

This field contains the format elements comprising the format of the calculation formula.

To replace an operator in a calculation formula that was marked in the Selected format elements field by another operator, mark the desired new operator in the Available format elements field and click (Replace).

The selected format elements are displayed in table form with their designation, with their symbol (for example the property number at selected properties), with their schematic representation of the set format (for the preview) and - if available - with their value.

The order of the format elements in the list determines the order in which the individual format elements are used in the calculation formula. You can change the sequence using the arrow buttons on the toolbar.

The following can be displayed in the Preview column:
(This column is not available for calculations in the form and plot frame editor.)

  • Values of properties: If you have marked an object before the definition of the block format and have selected a property as the format element, the property values of this object are displayed. If the property has an alphanumeric value (for example "6A"), the numerical value is additionally displayed in brackets (for example "6A (6)").
  • Values in calculations: In the row of calculation functions, operators, closing brackets, etc., the concrete values of calculations and - in brackets - the associated operation are displayed. Here you can, for example, recognize whether the numerical or alphanumeric value of a property is used (for example alphanumeric value: "1 (6A = "6A")", numerical value: "1 (6 = 6)"). Constants of the type "Text" are displayed in quotation marks "".
  • Error messages: If calculations cannot be carried out due to errors during the selection of format elements, error messages are displayed (for example "Calculation error: Division by 0. (1/0)").

Navigation:

If the calculation formula contains properties and you have selected one of these properties in the Selected format elements field, a navigation path is displayed here. This way you can recognize more easily from which object the property is determined.

Minimum number of digits:

The value in this field defines the minimum number of digits to be used for the result. This value only affects the positions before the decimal point. If the result has fewer digits before the decimal point than specified here, then the missing digits are padded with the filler character you have defined in the Filler character field.

Filler character:

Missing positions are filled in with this filler character. The number of digits filled depends on the value you entered in the Minimum number of digits field.

Decimal places:

The value in this field defines the minimum number of decimal places displayed in the result. If the result has more digits than allowed after the decimal point, then the digits are rounded to the permitted number of decimal places. If the result has fewer digits than allowed after the decimal point, then the missing digits are padded with the filler character you have defined in the Filler character field.

Decimal places, variable:

If this check box is selected then decimal places are never padded with filler characters. If the result has fewer digits than allowed after the decimal point, then the result remains unchanged. If the result has more digits than allowed after the decimal point, then the digits are rounded to the permitted number of decimal places.

Hide output if:

In this group box you define the conditions under which the project / parts data is not output. Select an operator from the drop-down list. Enter a value for the condition in the field below this.

  • Do not hide: No condition applies for the project data. The selected project data is always output.
  • =: The selected project data is not output when it has a value equal to that specified in the field below.
  • >: The selected project data is not output when it has a value greater than that specified in the field below.
  • <: The selected project data is not output when it has a value smaller than that specified in the field below.
  • >=: The selected project data is not output when it has a value greater than or equal to that specified in the field below.
  • <=: The selected project data is not output when it has a value smaller than or equal to that specified in the field below.
  • <>: The selected project data is not output when it has a value unequal to that specified in the field below. Only project data having this value is output.

Including preceding separator:

If this check box is selected then the project data satisfying the conditions in the fields above is not output, including any preceding separator. This setting affects the Separator format element preceding the Calculation format element.

Including following separator:

If this check box is selected then the project data satisfying the conditions in the fields above is not output, including any subsequent separators. This setting affects the Separator format element coming after the Calculation format element.

See also