Overview
Script Classes in FrameworkX are custom code structures that allow for the creation and organization of reusable scriptsmethods that can be called from Tasks, Expressions or Displays. Written in C#, VB.NET, or Python, these classes enable users to develop functionalities that can be used multiple times throughout the soluiton.
On this page:
Table of Contents | ||
---|---|---|
|
Configuring Classes
Classes let you create a repository of class libraries, methods, and functions that you can use across the application. You can call them from tasks, other classes, and displays (code behind).
FactoryStudio comes with the following built-in classes:
- ServerMain—Methods library available for all server tasks.
- ClientMain—Methods library available for all clients.
To configure classes:
- Go to Scripts > Classes.
- Select a class name, or select the insert row (first row) to create a new class.
- Enter or select information, as needed.
- Then you can double-click on the row created to go to Code Editor.
Column | Description |
Name | Enter a name for the class. The system lets you know if the name is not valid. |
Code | Read-only. This specifies the language used for the code for this task. By default, this is the language you selected when you created the project. From the Code Editor tab, you can change the code language. To change the project default, go to Info > Settings. |
Domain | Select where the class executes:
|
Content | Read-only. Show the type of the content in the class (i.e.: method or namespace) |
EditSecurity | Set the security to enable who can edit the tasks |
BuildOrder | Set the order to build the classes |
BuildStatus | Read-only. Status of the class code from the continuous compiling process.
|
BuildErrors | Read-only. Displays any errors encountered during the last build. |
Description | Enter a description of this class. |
[Other columns] | For definitions of other columns that are available in this table, see Common Column Definitions. |
- Apply all namespaces that will be used in your code, e.g.
- “Using System”
- “System.IO.StremReader”
- Click Save.
- Apply all namespaces that will be used in your code, e.g.
In this section...
Page Tree | ||||
---|---|---|---|---|
|