This class provides some general functions to assist the user writing scripts.
Table 96: Members
| Name | Type | Description |
|---|---|---|
| GeometryPath | string | Returns the directory where the Geometry file is saved. |
| ResultPath | string | Returns the directory where the Result files should be written. During the solving process this can be an intermediate directory, not the project system directory. |
| SystemDirectory | string | Returns the project system directory. |
| UserFilesDirectory | string | Returns the user_files directory for the current project. |
| RunMAPDL(string input, string output, string CommandLineParams) | void | Runs an instance of the Mechanical APDL solver. You must provide file names which may include the full path or may be in the application or current directory for input and output. Specify any additional Mechanical APDL command line parameters for CommandLineParams, or a blank string if none are required. |
| SetLastError(string errorString) | void | Sets the text message to show in the output messages of the editor. This can be used to present a message to the user of the script for a reason for failure, |
| ReplaceSolverOutputFile(string FileLoc) | void | Specifies a text file produced during output to replace the default solve.out log file. The solve.out log file will be shown in the Solution Information Worksheet view if selected from the drop-down. |
| SolverOutputFilePath | string | Gets the file name and path of the file that is displayed when the Solution Output displays the Solver Output data. |
| AppendToSolverOutputFile(string AdditionalText) | void | Appends a line of text to the Solver Output display. |
| ClearSolverOutputFile() | void | Deletes contents of the Solver Output File. |