update_laminate_layer#

Stackup.update_laminate_layer(project, cca_name, layer, manufacturer: str = '', grade: str = '', material: str = '', thickness: float = 0, thickness_unit: str = '', construction_style: str = '', glass_construction: list[tuple[str, float, float, str]] | None = None, fiber_material: str = '', conductor_material: str = '', conductor_percent: str = '') int#

Update a laminate layer with given properties.

Available Since: 2021R1

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

  • cca_name (str) – Name of the CCA.

  • layer (str) – Layer ID associated with the conductor layer.

  • manufacturer (str, optional) – Manufacturer of the material for the laminate layer. The default is "". To update the material, the manufacturer, grade, and material parameters must be specified. When the manufacturer is specified, there are checks to ensure that the corresponding parameters are provided.

  • grade (str, optional) – Material grade. The default is "".

  • material (str, optional) – Material name. The default is "".

  • thickness (float, optional) – Laminate thickness. The default is 0.

  • thickness_unit (str, optional) – Units for the laminate thickness. The default is "".

  • construction_style (str, optional) – Construction style. The default is "".

  • glass_construction (list[tuple[str, float, float, str]], optional) –

    List representing a glass construction. This list consists

    of objects with these properties:

    • stylestr

      Style of the glass construction.

    • resinPercentagefloat

      Resin percentage.

    • thickness: float

      Thickness.

    • thicknessUnit: str

      Units for the thickness.

  • fiber_material (str, optional) – Fiber material. The default is "". This parameter is only updated for a glass construction.

  • conductor_material (str, optional) – Conductor material. The default is "".

  • conductor_percent (str, optional) – Conductor percentage. The default is "".

Note

Using the default value for a property causes no changes for that property.

Returns:

Status code of the response. 0 for success.

Return type:

int

Example

>>> 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.update_laminate_layer(
    "Test",
    "Card",
    "2",
    "Generic",
    "FR-4",
    "Generic FR-4",
    0.015,
    "in",
    "106",
    [
        ("106", 68.0, 0.015, "in")
    ],
    "E-GLASS",
    "COPPER",
    "0.0"
)