Skip to main content

Prime Mesh Python client library 2025 R2

set_scope

Last update: 10.09.2025

SizeControl.set_scope(scope)

Set the scope for size control to evaluate.

Size control uses scope to evaluate entities for which size field needs to be computed.

  • Parameters:

    scope : ScopeDefinition to scope entities for size field computation.

  • Returns:

    SetScopeResults : Return a SetScopeResults.

  • Return type:

    SetScopeResults

Examples

>>> size_control.set_scope(prime.ScopeDefinition(model=model,
>>>                        entity_type = ScopeEntity.FACEZONELETS,
>>>                        evaluation_type = ScopeEvaluationType.LABELS,
>>>                        label_expression = "inlet"))

Connect with Ansys