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