add_cca#

Project.add_cca(project, cca_properties)#

Add one or more CCAs to a project.

Parameters:
  • project (str) – Name of the Sherlock project.

  • cca_properties (list) –

    List of CCAs to be added consisting of these properties:

    • cca_namestr

      Name of the CCA.

    • descriptionstr

      Description of the CCA. The default is None.

    • default_solder_type: str

      The default solder type. The default is None.

    • default_stencil_thickness: float

      The default stencil thickness. The default is None.

    • default_stencil_thickness_units: str

      Units for default stencil thickness. The default is None.

    • default_part_temp_rise: float

      Default part temp rise. The default is None.

    • default_part_temp_rise_units: str

      Units for default part temp rise. The default is None. Options are "C", "F", and "K".

    • guess_part_properties_enabled: bool

      Whether to enable guess part properties. The default is None.

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,
    project="Test",
    cca_name="Card",
)
>>> sherlock.project.add_cca(
    "Test",
    [{
        'cca_name': 'Card 2',
        'description': 'Second CCA',
        'default_solder_type': 'SAC305',
        'default_stencil_thickness': 10,
        'default_stencil_thickness_units': 'mm',
        'default_part_temp_rise': 20,
        'default_part_temp_rise_units': 'C',
        'guess_part_properties_enabled': False,
    },
    ]
)