Skip to main content

Prime Mesh Python client library 2024 R1 SP1

ansys.meshing.prime.lucid.SurfaceScope

Last update: 17.07.2025

SurfaceScope.get_parts(model)

Get the list of part ids in the scope.

  • Parameters: model : PyPrimeMesh model.
  • Returns: Iterable[int] : Returns the list of part ids.
  • Return type: Iterable[int]

Examples

>>> from ansys.meshing.prime import Model, SurfaceScope
>>> model = client.model
>>> su = SurfaceScope("*", "*", prime.ScopeEvaluationType.LABELS)
>>> part_ids = su.get_parts()

Connect with Ansys