-
|
Hello everyone, I am trying to create a single field report in Maxwell3D using the same calculator expression on multiple polylines (geometry context) but none of my approaches work. Can anybody comment on what I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @orlisd , It seems that the ways you're attempting to plot don't work because of misuse of the create_report method. Note that for instance in Case 1, the context takes a str, as specified in the documentation:
Furthermore, the polyline is an object, and what you need is the name. In your case, you've created a list of polyline objects. You maybe just swap your current definition to look something like: In the modified Option 3, I'm addressing all the issues you saw in the previous two options, the context is a string that refers to the poly line from the polylines list you're looping through. For more information about how to use this method: https://aedt.docs.pyansys.com/version/stable/API/_autosummary/ansys.aedt.core.modules.solve_setup.Setup.create_report.html Please, if this works for you mark it as correct answer so that it pops up to anyone else experiencing a similar issue. /jvela018 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.


Dear jvela018,
Thanks for revisiting this. Your reply and suggestion, however, is wrong.
Your modification of my code in option 3 uses
line.nameto (correctly) provide a str to the context, but the line variable used in the loop is already a string. Therefore, your code directly returns and AttributeError ('str' object has no attribute 'name').I include a screenshot below to help clarify the issue.