Script Explorer
The Script Explorer pane displays all the scripts and functions available in your solution. You can show or hide the explorer by selecting Workspace > Panes > Script Explorer, or by pressing Ctrl+F12 on your keyboard.
To customize the position and visibility of the script explorer in the workspace, see Customizing view and panes for more information.
When you create a new JewelScript using the JewelScript Editor, or a new function using the Function Tool, the object will be listed automatically in the script explorer. The scripts (read only) created from the JewelScript from Concept tool are also listed in the pane with a default naming convention: Concept-<subsurface model name>-<concept name>
You can create multiple levels of folders and organize your scripts and functions in the explorer in folders in a standard tree hierarchy. You can also create a new script, a function or new folder using the context menu of the Script Explorer. Arrange the objects and folders, or move the objects between folders in the Script Explorer using the drag and drop method. To move multiple objects at a time, hold Shift key and select the objects that you want to move. Keep holding the Shift key and drag the selected objects to the desired folder or location in the Script Explorer.
Double click to rename an object or a folder in the explorer. Use the context menu for script and functions to edit and manage the objects in the explorer.
The Script Explorer also displays all loaded macros, macro modules and macro libraries. It is the heart of the macro add-in and is a starting point for all macro related operations.
All loaded macros , macro modules and macro libraries in the Script Explorer have context menus, allowing you to add new objects, import, and delete objects.
When you create a new macro or edit an existing macro, the Macro Editor opens. In the Macro Editor you can see and edit the code of the macros. You can open multiple macros inside the Macro Editor. When you change the code of a macro, compile the code to check if it is valid C# or Visual Basic code. If the code has errors, the macro cannot run.
When the Macro Editor is open, the Macro Toolbar is visible. Using the Macro Toolbar you can (re)compile and run the active macro.
For more information, see Writing macros.
Run Script Opens the JewelScript Editor and runs the selected script immediately upon opening.
Edit... Opens the form to edit the object definition.
Duplicate Create a copy and place it in the same folder in the Script Explorer.
View History Open the Audit Trail to view a history of changes, including user name, date, context, workflow process, workflow panel, and description. For more on the Audit Trail, see Using the audit trail.
Delete Delete the object from the solution.
Add Module Add a new module. If you want to add a module to a specific library, use the Add Module context menu option from that library.
Import Module Opens the File Explorer where you can select a *.joaMacroMod file for import. If you want to add a module to a specific library, use the Import Module context menu option from that library.
Export Library Opens the File Explorer where you can provide a file name and location for the *.joaMacroLib file to export.
Export Module Opens the File Explorer where you can provide a file name and location for the *.joaMacraMod file to export.
Add Macro Add a new macro. This will also open the Macro Editor (if it is not open already) with the new macro selected. If you want to add a macro to a specific folder, use the Add Macro context menu option from that folder.
Import Macro Opens the File Explorer where you can select a *.joaMacro file for import. If you want to add a macro to a specific folder, use the Import Macro context menu option from that folder.
Run Macro When you have a macro that compiles successfully, you can run it using this context menu option.
Edit Macro Opens the Macro Editor.
Export Macro Opens the File Explorer where you can provide a file name and location for the *.joaMacro file to export.
Save Macro Save the macro.
Compile Macro Compiles the macro. If the compilation is successful, a message is provided in the Output Information pane. If the compilation is not successful, an error dialog with all the necessary information is shown.
Delete Delete the object from the solution. Depending on the type of object, geometric representations, subfolders or objects it may contain are deleted as well.