Solution
DIAdem global variables can be used to exchange data between the Python Script and the Scriptable User Dialog (SUD) box, this is shown in the following example code:
Use a SUD Dialog to Provide a Text String to a DIAdem Python Script. When calling the DIAdem global variable within the Python script, make sure to define it as dd.
variableName.
Regarding limitations, DIAdem does not support Python in SUDs. Therefore, you cannot pass a Python-specific object, such as a Python class, to a SUD. However, you can take parameters of the class, such as strings or numeric values, and pass that into the SUD.