Femtet Help/Manual
 

Home / How to Create Project / Variable

Variables

Variables can be set for the dimensions, analysis conditions, material properties etc.

 

They need to be registered beforehand.

Variables are registered/edited/deleted on the project tree.

Variables in the analysis model

Variables are defined and registered for each analysis model.

They are analysis-model specific and cannot be referred to in other analysis models even if they are in the same project.

In the same model, the variables can commonly be referred to for the dimensions and various conditions.

 

  • Femtet is not case-sensitive.

How to use the variables

  1. Right click under the analysis model on the Project Tree and select [New Variables].

  2. Enter the variable name and content in the dialog box.
     

    • Please see [Characters for Variables] below.
       

    • The words reserved for Visual Basic, e.g. Sub, fix, must not be used for variable names.
      Macros will malfunction if used.
        

    • Functions can be inserted in the formula.
      See [Entry by Mathematical Expressions] for more details.
       

  1. Click .
     

  2. Registered variables can be referenced just by their names in various dialog boxes.

 

 

  • If unregistered variables are entered in dialog boxes,
    the dialog box for registration will appear.

  • Dimension Reference Counter
    Variables have the dimension reference counter.
    The counter counts how many times the variable is referenced
    in the modeling dimensions or other variables' formula.
    The variable cannot be deleted unless the counter indicates 0.

 

 

Other operations are as follows.

Operation

Notes

Edit variables

Edits selected item in the formula.

The variables whose counter is not 0 cannot be edited during the sketching.

Delete variables

Deletes unnecessary variables.

To delete dimension variables, their counters have to be 0.

Highlight History of Used Variables

See [Highlight History of Used Variables] for the details.

 

Characters for variables

Locations

Characters Allowed

Head character

Only English alphabetic characters are allowed.

   <Unsupported characters>

  • Numbers

  • Space

  • Special characters such as , . : ; + - / * ? ! < > ...... etc

Characters following head

English alphabet characters and the following are allowed.

  • Underscore ( _ )

  • Numbers

 
Note: It is not allowed to use a name completely same as the name of functions/operators reserved for formula. No differentiation between uppercase letters and lowercase letters.