Open DaveTwyman opened 9 months ago
@DaveTwyman Did you debug the code to check which parameters are passed to the method?
Please record a script to compare the parameters you are passing.
@DaveTwyman Did you debug the code to check which parameters are passed to the method?
Please record a script to compare the parameters you are passing.
Thanks for your help and as discussed, looks likely issue is in AEDT UI side, bug 957132 raised.
Whilst this github issue (of type bug) is now 'closed as completed' on the PyAEDT side, the bug against UDP AEDT behavior is still open and will be resolved in a future release of AEDT. Following this bug fix on the AEDT side, correct behavior of this UDP will follow in PyAEDT.
@Samuelopez-ansys @maxcapodi78 Dev cam back with an update on this issue to tfs 957132. copied below
"This bug is due to PyAEDT didn't set the UDP version on their side. Since the version is not set, we use the default version 1.0 which is very old and doesn't support InfoCoil parameter. And this is why this parameter is always zero. In order to fix this bug, we add a small feature on our side, PyAEDT team can send version -1.0 to AEDT to indicate the latest version."
This looks like it needs a bit more verification of other UDPs created from PyAEDT. It could be that we are getting lucky with the features passed using all UDPs requested from PyAEDT in other cases they exist in version 1 of the UDP so behavior was as expected. But this means if a UDP is called from PyAEDT with a feature that was not present in v1 of the UDP, we get errant behaviour.
Any ideas on how/when we could implement this UDP=-1 version flag to work with the AEDT version in the future it is implemented in?
Is there a workaround available?
Discussed in https://github.com/ansys/pyaedt/discussions/3941