import_GDSII_file#

Project.import_GDSII_file(request)#

Import a GDSII project file and any optional config files.

Available Since: 2025R2

Parameters:
requestImportGDSIIRequest

Contains the information needed to import the GDSII project file and any optional config files.

Returns:
:
ReturnCode

Status of the GDSII file import.

Return type:

int

Examples

>>> from ansys.sherlock.core.types.project_types import ImportGDSIIRequest
>>> from ansys.sherlock.core.launcher import launch_sherlock
>>> sherlock = launch_sherlock()
>>> return_code = sherlock.project.import_GDSII_file(
>>>     ImportGDSIIRequest(
>>>         gdsii_file="path/to/design.gds",
>>>         technology_file="path/to/tech.xml",
>>>         layer_map_file="path/to/layer.map",
>>>         project="TestProject",
>>>         cca_name="TestCCA",
>>>         guess_part_properties=True,
>>>         polyline_simplification_enabled=True,
>>>         polyline_tolerance=0.01,
>>>         polyline_tolerance_units="mm",
>>>     )
>>> )
>>> print(f"Import result: {return_code}")