The Utility Class node (
) contains a utility class with methods that you can call from other methods. To add a new
Utility Class node, right-click the
Libraries node (
) and choose
Utility Class or click the
Utility Class button in the ribbon toolbar. Enter the name of the utility class in the
Name field.
The name of the utility class must be the same as the tag of the utility class node. Suppose that the Utility Class node is named
util1. You would call the method above by typing
util1.runAllGeom(); in any other method.
If you enable the View all code preference setting, the code editor shows that the utility class extends an abstract base class called
ApplicationLanguageBase. This inheritance makes it possible to access the model object (as exemplified above) and use other convenience methods. You can also remove this inheritance to make classes that you can instantiate and even extend another utility class or other accessible class. The package of the utility class is
builder, and you are advised to keep this name.