import_GDSII_file#
- Project.import_GDSII_file(request: ImportGDSIIRequest) int #
Import a GDSII project file and any optional config files.
Available Since: 2025R2
- Parameters:
request (ImportGDSIIRequest) – Contains the information needed to import the GDSII project file and any optional config files.
- Returns:
Status of the GDSII file import.
- Return type:
ReturnCode
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}")