-
Notifications
You must be signed in to change notification settings - Fork 134
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
import_gds_3d
doesn't work in non graphical mode
#5567
Comments
Hi @geexie, It was a limitation of the AEDT API, so PyAEDT could not fix it. I am going to test if from 2024R1, this method is working in NonGraphical mode. |
@Samuelopez-ansys, thank you! Looking forward to see if there is a solution |
I tried this fix with ansys 2024.2 and for my example this version crushes. Could you please check if this works on you side? I use the following GDS file My code to reproduce the issue
I got an empty object list with this code both running natively and remotely over SSH and the script hangs
|
@Samuelopez-ansys, could you please take a look? |
Hi @geexie , In fact, it is a bug in Maxwell 3D, because in HFSS I tried and it worked, but not in Maxwell. Please, submit a service request to the Ansys support if you want this feature to be implemented in the future. In the meanwhile, you could use the following workaround, import in HFSS, and copy the solids to Maxwell 3D:
Finally, if you are using Layout geometries, I would use PyEDB to first manipulate the layout: |
@Samuelopez-ansys, thanks for your help! Will use you workaround in a meanwhile. Is it correct that you instantiate HFSS with
|
@Samuelopez-ansys, I checked and the workaround works for this short example. However, HFSS import works a bit different. I'm getting an error while I try to assign excitation
Same when I try to do it manually in Ansys Manually, I managed to create a section Signal->Edit->Surface->Section->XY option, then assign voltage to it. Could you please advice me how can I do it with Python? It should be something with section but Full code example
|
Before submitting the issue
Description of the bug
I started using PyAEDT to avoid running over GUI. I discovered that
import_gds_3d
doesn't work in non graphical mode. Is it possible to overcome this issue?Steps To Reproduce
m3d = Maxwell3d(project=project_name, version="2024.1", new_desktop=True, non_graphical=True, close_on_exit=True)
mapping_layers = {1: (0, 100)}
if m3d.import_gds_3d(os.path.join(proj_dir, "sim.GDS"), mapping_layers, units='um', import_method=0):
print("export is successful")
Which Operating System are you using?
Linux
Which Python version are you using?
3.11
Installed packages
python -m pip freeze
aiohappyeyeballs==2.4.3
aiohttp==3.11.8
aiosignal==1.3.1
annotated-types==0.7.0
ansys-pythonnet==3.1.0rc4
ansys-tools-visualization-interface==0.6.0
async-timeout==5.0.1
attrs==24.2.0
blosc2==2.7.1
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.4.0
click==8.1.7
click-plugins==1.1.1
cligj==0.7.2
clr-loader==0.2.6
contourpy==1.3.1
cycler==0.12.1
defusedxml==0.7.1
distro==1.9.0
dotnetcore2==3.1.23
et_xmlfile==2.0.0
fast_simplification==0.1.7
fiona==1.10.1
fonttools==4.55.0
fpdf2==2.8.1
frozenlist==1.5.0
geopandas==0.14.4
idna==3.10
imageio==2.36.1
joblib==1.4.2
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
kiwisolver==1.4.7
markdown-it-py==3.0.0
matplotlib==3.9.2
mdurl==0.1.2
meshio==5.3.5
more-itertools==10.5.0
msgpack==1.1.0
multidict==6.1.0
ndindex==1.9.2
networkx==3.3
numexpr==2.10.2
numpy==1.26.4
openpyxl==3.1.5
osmnx==1.9.4
packaging==24.2
pandas==2.2.3
pillow==11.0.0
platformdirs==4.3.6
plumbum==1.9.0
pooch==1.8.2
propcache==0.2.0
psutil==6.1.0
py-cpuinfo==9.0.0
pyaedt==0.11.6
pycparser==2.22
pydantic==2.9.2
pydantic_core==2.23.4
pyedb==0.31.0
Pygments==2.18.0
pyparsing==3.2.0
pyproj==3.7.0
python-dateutil==2.9.0.post0
pytomlpp==1.0.13
pytz==2024.2
pyvista==0.44.2
PyYAML==6.0.2
referencing==0.35.1
requests==2.32.3
rich==13.9.4
rpds-py==0.21.0
rpyc==6.0.1
Rtree==1.3.0
scikit-learn==1.5.2
scikit-rf==1.4.1
scipy==1.14.1
scooby==0.10.0
shapely==2.0.6
six==1.16.0
SRTM.py==0.3.7
tables==3.10.1
threadpoolctl==3.5.0
toml==0.10.2
trame==3.7.0
trame-client==3.5.0
trame-server==3.2.3
trame-vtk==2.8.12
trame-vuetify==2.7.2
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3
utm==0.7.0
vtk==9.3.1
websockets==14.1
wslink==2.2.1
yarl==1.18.0
The text was updated successfully, but these errors were encountered: