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:


ensight.core.nexus...


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>")

ensight.core.nexus.ReportItemSourceInterface.saveItem(enscl.item)


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

Created with the Personal Edition of HelpNDoc: Qt Help documentation made easy