EnSight Command Language Nexus API

The command language API is the same as the EnSight Python Nexus API.  The only difference is that you must start lines with the fully qualified name of the nexus module.  For example:


Similarly, return values must be placed in the enscl module.  A simple example that adds a HTML string to the current database:

enscl.item = ensight.core.nexus.ReportItemSourceInterface.createItem("test item", source="cmdlang")

enscl.item.set_payload_html("<h1>Example</h1><p>Some data</p>")


This example can be included in a command language (.enc) file.