-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Generating and Exporting Field Plots Using PyAEDT #5500
Comments
Hi @gmalinve I hope you’re doing well! Thank you! |
Dear @chamanth-vct, If you look at the documentation of the export_field_plot method, it says that the method succeeds when the plot is active. I tested your code and the export fails beacause the plot is not active. This is due to the fact that when you create the field plot you don't pass the Frequency at which the field plot needs to be created:
and pass intrinsics to create_fieldplot_surface the export will work. Please do let me know if this solves your problem so I can proceed closing the issue. Kind regards, Giulia |
Hi @gmalinve, Thank you so much for your suggestion—it was really helpful! I’m now able to export it properly. However, I wanted to point out that the I haven’t yet identified the difference, but I’ll investigate further and update you if I find anything. If this attribute’s behavior could be made consistent, it would be ideal. Thanks again for your support! |
@chamanth-vct I'll proceed closing this issue since the matter has been solved. Thanks! Giulia |
@chamanth-vct please look at this issue that I just open: #5650 . |
Hi @gmalinve, Based on my testing, when a model contains any encrypted components, the The method you suggested to retrieve the frequency using the I have raised a new issue to provide more details on this behaviour. You can find it here: #5691 |
Before submitting the issue
Description of the bug
I am encountering issues while generating and exporting field plots using PyAEDT. The process fails with the following error messages displayed in the AEDT Message Manager as shown in the screenshot:
However, when performing the same steps using the AEDT GUI, the process completes successfully without any errors as shown in the GIF below.
Steps To Reproduce
Use the provided Python code snippet (below) to reproduce the issue. Download and use the sample aedt file from this link.
The Python code generates the H Vector field plot for the
Ground
object and attempts to export it into .case format.Based on this error message:
Script macro error: Plot H_vector_plot is not valid. Make sure this plot is updated before export
I attempted to update the plot using the following command:
h_field_plot.update()
Unfortunately, this approach did not resolve the problem.
Could anyone assist in resolving this issue? Any suggestions or insights would be highly appreciated.
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
Installed packages
The text was updated successfully, but these errors were encountered: