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
SeryDavid_0-1605703176150.png
However when trying to modify the parameters (red rectangle on the photo) and read it back in python, the param array is unchanged.
SeryDavid_1-1605703249752.png
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:
SeryDavid_2-1605703469957.png
SeryDavid_4-1605703649885.png
SeryDavid_5-1605703663271.png
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.
SeryDavid_0-1605712251170.png
Is there a cleaner solution for this?