Annotations

Navigation:  Language Reference > Keywords >

Annotations

Previous pageReturn to chapter overviewNext page

Parameters can be limited in range or restricted by annotations.

 

 real x (range=<-1,1>) = 0.1 {m};                // the position of part x with a min-max range

 real y (readonly=true) = 20 {kg};                // the mass y, cannot be changed value in the parameters editor

 

Annotations start ( and end with a bracket ). Various elements can be included inside the brackets, separated by semicolons. Annotation have to be placed right after the parameter name. The following annotations are supported:

 

min=0,0
max=10,1
range=<-17,2.345>
readonly=true

 

Note

The ranges are only checked in debug mode.
No spaces are allowed between the brackets.