cp950 encoding error #5205
-
When I tried to execute the sample code, I encountered this problem. I would like to ask if I can only find all open in the source code of ansys and change the encoding='utf-8' PyAEDT ERROR: h3d.modeler.layers.add_layer(layer="GND", layer_type="signal", thickness="0", isnegative=True) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @alskdj987 , Please share for information. Which sample code? What are you trying to do ? |
Beta Was this translation helpful? Give feedback.
-
I try to run |
Beta Was this translation helpful? Give feedback.
-
I only execute the first half of the program import ansys.aedt.core aedt_version = "2024.1" non_graphical = True h3d = ansys.aedt.core.Hfss3dLayout(version=aedt_version, new_desktop=True, non_graphical=non_graphical) h3d.modeler.layers.add_layer(layer="GND", layer_type="signal", thickness="0", isnegative=True) |
Beta Was this translation helpful? Give feedback.
-
Hello @alskdj987 I think this could be related to some material amat file you have saved in your personallib or userlib. I've modified the code as in #5211 to skip wrong or not readable files |
Beta Was this translation helpful? Give feedback.
Hello @alskdj987 I think this could be related to some material amat file you have saved in your personallib or userlib. I've modified the code as in #5211 to skip wrong or not readable files