ansys / pyaedt

AEDT Python Client Package
https://aedt.docs.pyansys.com
MIT License
215 stars 129 forks source link

HFSS : The dxf_import function when "script" is selected does not import all variables into HFSS. #3811

Open Ouam74 opened 1 year ago

Ouam74 commented 1 year ago

Before submitting the issue

Description of the bug

Hi, when i manually import a dxf file from HFSS, checking the 'Script" option in the import GUI,

image

i get the following variables into HFSS:

image

but if i use the dxf_import function instead:

hfss.import_dxf(file_path="2023_10_ExampleData.dxf", layers_list=xx[1:], auto_detect_close=True, self_stitch=True, self_stitch_tolerance=0, scale=0.001, defeature_geometry=False, defeature_distance=0, round_coordinates=True, round_num_digits=6, write_poly_with_width_as_filled_poly=False, import_method=0, sheet_bodies_2d=False)

i get this :

image

All "thickness" variables are missing.

Steps To Reproduce

Import a dxf files (containing variables) into HFSS manually and do it using the import_dxf function.

Which Operating System are you using?

Windows

Which Python version are you using?

3.10

Installed packages

contourpy==1.1.0 cycler==0.11.0 fonttools==4.42.1 kiwisolver==1.4.5 matplotlib==3.7.2 numpy==1.25.2 packaging==23.1 Pillow==10.0.0 PyOpenGL==3.1.7 pyparsing==3.0.9 pyqtgraph==0.13.3 PySide6==6.5.2 PySide6-Addons==6.5.2 PySide6-Essentials==6.5.2 python-dateutil==2.8.2 QDarkStyle==3.1 QtPy==2.4.0 scipy==1.11.2 shiboken6==6.5.2 six==1.16.0

Samuelopez-ansys commented 1 year ago

Hi @Ouam74 ,

Please record the script, and check what is missing in the PyAEDT method to get the variables. If the implementation is too complex for you, we can help, please provide a DXF example with no IP, and the community will try to help you.

Thanks