1 .. |expression.icon| image:: images/expression.png
8 The parameter can be defined in form *variable=expression*.
10 To create a parameter in the active partset or part:
12 #. select in the Main Menu *Part - > Parameter* item or
13 #. click |expression.icon| **Parameter** button in the toolbar:
16 The following property panel appears.
18 .. figure:: images/parameter.png
21 Parameter property panel
25 - |expression.icon| defines parameter name following the naming rules of the python language for variables;
27 - panel **Expression** evaluates the expression input manually as a real number by python *eval()* function. In the simplest case an expression is a real number. Some standard python modules (like math) are imported by default before evaluation.
29 - **Comment** contains any text. This field is optional.
32 The property panel checks validity of the expression. For an invalid expression **Apply** button is disabled and an error message generated by python interpreter during the evaluation is shown in the status bar and in pop-up of **Apply** button.
36 .. py:function:: model.addParameter(Part_doc, Name, Value, Comment)
38 :param part: The current part object
39 :param string: The parameter name
40 :param number: The parameter value
41 :param string: The parameter comment
42 :return: Created object.
44 **See Also** a sample TUI Script of a :ref:`tui_parameterFeature` operation.
49 The created parameter and its current value are displayed in the Object Browser, in a special section **Parameters**.
51 .. figure:: images/object_browser_parameter.png
54 **Parameter** in object browser