Skip to main content

Prime Mesh Python client library 2025 R2 SP04

get_zone_by_name

Last update: 20.02.2026

Model.get_zone_by_name(zone_name)

Gets the zone with the provided name.

  • Parameters:

    zone_name : Name of the zone.

  • Returns:

    int : Returns id of the zone.

  • Return type:

    int

Examples

>>> client = prime.launch_prime()
>>> model = client.model
>>> zone_id = model.get_zone_by_name("inlet")

Connect with Ansys