import_odb_archive#
- Project.import_odb_archive(archive_file: str, process_layer_thickness: bool, include_other_layers: bool, process_cutout_file: bool, guess_part_properties: bool, ims_stackup: bool = False, project: str | None = None, cca_name: str | None = None, polyline_simplification: bool = False, polyline_tolerance: float = 0.1, polyline_tolerance_units: str = 'mm') int #
Import an ODB++ archive file.
Available Since: 2021R1
- Parameters:
archive_file (str) – Full path to the ODB++ archive file.
process_layer_thickness (bool) – Whether to assign stackup thickness.
include_other_layers (bool) – Whether to include other layers.
process_cutout_file (bool) – Whether to process cutouts.
guess_part_properties (bool) – Whether to guess part properties.
ims_stackup (bool, optional) – Whether to generate an IMS stackup
project (str, optional) – Name of the Sherlock project. The default is
None
, in which case the name of the ODB++ archive file is used for the project name.cca_name (str, optional) – Name of the CCA name. The default is
None
, in which case the name of the ODB++ archive file is used for the CCA name.polyline_simplification (bool, optional) – Whether to enable polyline simplification
polyline_tolerance (float, optional) – Polyline simplification tolerance
polyline_tolerance_units (str, optional) – Polyline simplification tolerance units
- Returns:
Status code of the response. 0 for success.
- Return type:
int
Examples
>>> from ansys.sherlock.core.launcher import launch_sherlock >>> sherlock = launch_sherlock() >>> sherlock.project.import_odb_archive("ODB++ Tutorial.tgz", True, True, True, True, ims_stackup=True, project="Tutorial", cca_name="Card", polyline_simplification=True, polyline_tolerance=0.1, polyline_tolerance_units="mm")