update_laminate_layer#

Stackup.update_laminate_layer(project, cca_name, layer, manufacturer='', grade='', material='', thickness=0, thickness_unit='', construction_style='', glass_construction=None, fiber_material='', conductor_material='', conductor_percent='')#

Update a laminate layer with given properties.

Available Since: 2021R1

Parameters:
projectstr

Name of the Sherlock project.

cca_namestr

Name of the CCA.

layerstr

Layer ID associated with the laminate layer.

manufacturerstr, 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.

gradestr, optional

Material grade. The default is "".

materialstr, optional

Material name. The default is "".

thicknessfloat, optional

Laminate thickness. The default is 0.

thickness_unitstr, optional

Units for the laminate thickness. The default is "".

construction_stylestr, optional

Construction style. The default is "".

glass_constructionlist[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_materialstr, optional

Fiber material. The default is "". This parameter is only updated for a glass construction.

conductor_materialstr, optional

Conductor material. The default is "".

conductor_percentstr, optional

Conductor percentage. The default is "".

Returns:
:
int

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.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"
)