Problem using RMxprt User Defined Primitive in Maxwell 3D #3941
-
This describes a problem encountered when creating a coil in Maxwell 3D using the LapCoil User Defined Primitive from RMxprt.
To create a single coil, I set the InfoCoil parameter to 1 in the udp_parameters_list of the following function: The object is then created and visible in the GUI, but appears as a complete winding and not a coil. When you open the parameter list from the GUI, you can see that the InfoCoil parameter has not been correctly transmitted from PyAEDT and does not have the correct value. You can find a simple example in the attached script where the goal is to create a coil and a terminal. Here are more information about the function used: Any support is welcome, thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I've taken a look and can't immediately see what the issue is. |
Beta Was this translation helpful? Give feedback.
-
Hello @Porta-L , coil = app.modeler.create_udp(udp_dll_name="RMxprt/LapCoil", udp_parameters_list=parameters_list, upd_library='syslib', name='coil') |
Beta Was this translation helpful? Give feedback.
Hello @Porta-L ,
This looks to be a bug in the area of AEDT UDP handling . We will raise this internally and get it fixed.
Until then you can adjust the value of 'InfoCoil' using the second line below
coil = app.modeler.create_udp(udp_dll_name="RMxprt/LapCoil", udp_parameters_list=parameters_list, upd_library='syslib', name='coil')
app.modeler[coil].history().props['InfoCoil'] = '2'