gen_stackup#
- Stackup.gen_stackup(project: str, cca_name: str, board_thickness: float, board_thickness_unit: str, pcb_material_manufacturer: str, pcb_material_grade: str, pcb_material: str, conductor_layers_cnt: int, signal_layer_thickness: float, signal_layer_thickness_unit: str, min_laminate_thickness: float, min_laminate_thickness_unit: str, maintain_symmetry: bool, power_layer_thickness: float, power_layer_thickness_unit: str) int #
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" )