Global Keywords Recognised in the Lua Editor
A selection of global keywords recognised in the Lua editor, as well as additional functionality are highlighted.
- Complex
- The “Complex” object adds complex number support to the scripting interface.
- Matrix
- The “Matrix” object adds support for fast matrix manipulation to the scripting interface.
- ComplexMatrix
- The “ComplexMatrix” object adds support for fast matrix manipulation for complex numbers to the scripting interface.
There are several keywords (other than the standard Lua keywords) recognised by the editor. These include, but are not limited to:
cf | The main interface between the Lua scripting environment and CADFEKO. The cf namespace is used to pull the CADFEKO application into the Lua environment for further processing. Type cf. to get started. |
pf | The main interface between the Lua scripting environment and POSTFEKO. The pf namespace is used to pull the POSTFEKO application into the Lua environment for further processing. Type pf. to get started. |
inspect | A function similar to print that displays the contents of any table that can be broken down into basic components. Output can be seen in the output window of the editor. |
printlist | A function that prints out the contents of key/value pairs. Output can be seen in the output window of the editor. |
i, j | Predefined constants for . |
cf.Complex, pf.Complex | An object class that helps manage complex numbers. |
cf.Point, pf.Point | An object class that helps manage points in 3D space. |
SESSION_PATH | The path to where the POSTFEKO session is stored for a math script environment. |
SESSION_NAME | Name of the POSTFEKO session stored. |
FEKO_HOME | The Feko installation directory. |
FEKO_USER_HOME | The Feko user directory. |