Value Input (General Advice on Formulas and Variables)

Whenever HiCAD requests a value input, you can also use formulas instead of a numeric value. These formulas can contain the permissible mathematical operators and functions etc. Furthermore, you can also use variables within the value input. They are managed in the variable table and can, for example, be changed or deleted there.

Formulas /variables can be used, for example, in point options and value inputs (e.g. height, length, offset thickness).


Using Formulas

You can enter formulas directly when creating or processing a part or subsequently in the feature log.

If you want to use a formula instead of a value in the feature log or change an existing formula, activate the value input window by double-clicking the relevant entry in the feature log, e.g. height of a part.

Enter the formula. If the formula you enter contains variables, HiCAD asks for the initial value of the variables. Once the entry has been concluded, the formula is displayed in brackets after the value in the feature log.

 

Please note the follwing:

You can use points or commas as separators. In functions with more that one parameter (e.g. distance_points) a semicolon must be used as separator between the parameters. When loading older formulas (older than HiCAD Version 1800) commas will be replaced with semicolons.

If you assign a formula to a part variable in HiCAD, (e.g. X=10 and Y=2*X), this formula will be evaluated correctly, but the result value (20) instead of the formula (2+X) will be written to the variable. The same applies to formulae without variables (e.g. Y=2*10=> 20).

In situations where the formula is absolutely required, specify it in the corresponding feature log item (e.g. in the Width of a Cuboid). The feature log will "memorize" the formulae as usual (Width: 20(2*x)).


Edit variables

The variables used are managed in so-called variable tables.

To activate a variable table, choose one of the following functions:

All variables of a part are displayed.

Only the variables of the current feature are displayed.

You access these functions by right-clicking a feature or double-clicking in an empty area of the tab.

The variable table provides the following functions:

To change the value of a variable, proceed as follows:

  1. Mark the entry and enter the new amount in the input field.
  2. Double-click the HiCAD pocket calculator to activate it and enter the new value.

The context menu, which you activate by right-clicking a variable name, provides the other functions.

Please note:

Feature Technology: Context MenuFeature Parameter FormulasElement Variables

© Copyright 1994-2018, ISD Software und Systeme GmbH
Version 2302 - HiCAD Feature Technology
Date: 14/09/2018

> Feedback on this topic