-
Dear team, I found that in Q3D PyAEDT, there is an API called export_matrix_data, which can be used to export matrix results such as AC RL. I can use the following code in Jupyter Notebook to export the AC RL matrix at the nominal condition (result in the Analysis-Setup): import pyaedt The above code can create a .m file containing the AC RL matrix for the nominal condition. However, when I specify the design variation in this API, it creates the .m file withan empty AC RL matrix. app = pyaedt.Q3d(projectname="project1", designname="Q3DDesign2") Do you happen to have an idea about this API export_matrix_data function? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi @LuWan-dot, I'm Giulia, thanks for reaching out! Another thing that I'd suggest you is to avoid using the pyaedt alias. So for example your workflow will become:
hope this helps, Kind regards, Giulia |
Beta Was this translation helpful? Give feedback.
-
Hi @LuWan-dot, You can access your parametric setups in this way: my_setup = self.aedtapp.parametrics.setups[0] but I suggest you to use an IDE (like PyCharm) to debug and see what you can access. Hope this helps! Kind regards, Giulia |
Beta Was this translation helpful? Give feedback.
-
I'm glad I've helped @LuWan-dot. |
Beta Was this translation helpful? Give feedback.
Hi @LuWan-dot,
You can access your parametric setups in this way:
self.aedtapp.parametrics.setups
this will give you the list of your parametric setups.
You can get the one you are interested in by parsing by name for example.
[setup for setup in self.aedtapp.parametrics.setups if setup.name == my_setup_name]
If we suppose you have only one you can get your design variations as:
my_setup = self.aedtapp.parametrics.setups[0]
self.aedtapp.parametrics.setups[0].props["Sweeps"]["SweepDefinition"]
but I suggest you to use an IDE (like PyCharm) to debug and see what you can access.
For example this is my PyCharm evaluator:
You can see that in SweepDefinition you can access the design variation…