gen_stackup#

Stackup.gen_stackup(project, cca_name, board_thickness, board_thickness_unit, pcb_material_manufacturer, pcb_material_grade, pcb_material, conductor_layers_cnt, signal_layer_thickness, signal_layer_thickness_unit, min_laminate_thickness, min_laminate_thickness_unit, maintain_symmetry, power_layer_thickness, power_layer_thickness_unit)#

Generate a new stackup from given properties.

Available Since: 2021R2

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

  • cca_name (str) – Name of the CCA.

  • board_thickness (float) – Board thickness.

  • board_thickness_unit (str) – Units for the board thickness.

  • pcb_material_manufacturer (str) – Manufacturer for the PCB material.

  • pcb_material_grade (str) – Grade for the PCB material.

  • pcb_material (str) – Material for the PCB.

  • conductor_layers_cnt (int32) – Number of conductor layers.

  • signal_layer_thickness (float) – Signal layer thickness.

  • signal_layer_thickness_unit (str) – Units for the signal layer thickness.

  • min_laminate_thickness (float) – Minimum thickness of laminate layers.

  • min_laminate_thickness_unit (str) – Units for the minimum thickness of laminate layers.

  • maintain_symmetry (bool) – Whether to maintain symmetry.

  • power_layer_thickness (float) – Power layer thickness.

  • power_layer_thickness_unit (str) – Units for the power layer thickness.

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.stackup.gen_stackup(
    "Test",
    "Card",
    82.6,
    "mil",
    "Generic",
    "FR-4",
    "Generic FR-4",
    6,
    0.5,
    "oz",
    1.0,
    "mil",
    False,
    1.0,
    "mil",
)