Specifications
5-20 Code Editor
5-20
Variable
The second level of security is the Calculate Only setting. Select
this option to ensure that only the User Variable’s macro code
can change its value.
5.6.5 Defaults Tab
The Defaults tab lets you assign a default value to the User
Variable. Default value may only be assigned to scalar variables
of type Real, Enumeration, and Text. Without an explicit default
value, scalar variables of these types are initially created with
empty values.
5.7 Code Editor
The Code Editor is where you write, using the Visual Basic
®
compatible macro language, and debug the macro code that you
are attaching to a simulation object. You can add break points to
the code by simply clicking in the bar that borders the left side
of the Code Editor. If there are no break points in your code, the
macros execute seamlessly as part of your HYSYS case.
Figure 5.19
To assign a default
value, select the
Assign Default Value
checkbox and enter
the desired value in
the field.