    

 ## On this page

  

 

 # set\_scope

 Last update: 10.09.2025 

<a id="ansys.meshing.prime.SizeControl.set_scope"></a>

#### 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`](ansys.meshing.prime.SetScopeResults.md#ansys.meshing.prime.SetScopeResults): Return a SetScopeResults.
- **Return type:**
    
    [`SetScopeResults`](ansys.meshing.prime.SetScopeResults.md#ansys.meshing.prime.SetScopeResults)

### Examples

```pycon
&gt;&gt;&gt; size_control.set_scope(prime.ScopeDefinition(model=model,
&gt;&gt;&gt;                        entity_type = ScopeEntity.FACEZONELETS,
&gt;&gt;&gt;                        evaluation_type = ScopeEvaluationType.LABELS,
&gt;&gt;&gt;                        label_expression = "inlet"))

```