11-18-2020 06:47 AM
Hello,
if I understand it correctly, then even when I use python for DIAdem programming, the language for dialogs is still VBS.
My question is, how do I in that case send variables to and from the dialog?
I managed to send variables to the dialog with
However when trying to modify the parameters (red rectangle on the photo) and read it back in python, the param array is unchanged.
I tried using the SetArgument function, but I was told that this function is deprecated. So then I tried modifying the array directly, but it seems that I modify just a copy of the array, which is not returned to python.
Finally I tried creating a python class and send an instance of the class to the dialog as parameter. However that does not seem to be supported:
Is there any tutorial / example on working with DIAdem dialogs using python in DIAdem?
Thanks.
11-18-2020 09:09 AM
I found out that a possible workaround is to define a variable with dd.GlobalDim. That variable is then modifyable in the dialog.
Is there a cleaner solution for this?