EnSight Command Language Ansys Dynamic Reporting API#
The command language API is the same as the EnSight Python Ansys Dynamic Reporting 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.