import_gds_3d#

Maxwell2d.import_gds_3d(input_file: str, mapping_layers: dict, units: str = 'um', import_method: int = 1) bool#

Import a GDSII file.

Parameters:
input_filestr

Path to the GDS file.

mapping_layersdict

The dictionary uses GDS layer numbers as keys. Each value is either a tuple containing the elevation and thickness, or a list consisting of that tuple along with a string representing the layer name.

unitsstr, optional

Length unit values. The default is "um".

import_methodinteger, optional

GDSII import method. The default is 1. Options are:

  • 0 for script.

  • 1 for Parasolid.

Returns:
bool

True when successful.

References

>>> oEditor.ImportGDSII

Examples

Import a GDS file in an HFSS 3D project.

>>> gds_path = r"C:\temp\gds1.gds"
>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> gds_number = {7: (100, 10), 9: [(110, 5), "my_layer"]}
>>> hfss.import_gds_3d(gds_path, gds_number, units="um", import_method=1)