    

 ## On this page

  

 

 # create\_geometrical\_selection\_rule

 Last update: 16.07.2026 

<a id="compolyx.Model.create_geometrical_selection_rule"></a>

## Model.create\_geometrical\_selection\_rule(name, geometrical\_rule\_type='geometry', id=None, use\_defaults=True, in\_plane\_capture\_tolerance=0.0, neg\_capture\_tolerance=0.0, pos\_capture\_tolerance=0.0, include\_rule\_type=True, geometry=None, use\_projection\_normal=False, projection\_normal=(0.0, 0.0, 0.0), element\_sets=None)

Create new geometrical selection rule.

### Parameters

- name: Name of the rule.
- geometrical\_rule\_type: Define whether the rule extent is defined by a geometry of element sets. Valid options: ‘geometry’ (default) or ‘element\_sets’.
- use\_defaults: Whether to use the offset value of the CAD geometry.
- in\_plane\_capture\_tolerance: In-plane extend (extend) if CAD geometry is a surface.
- neg\_capture\_tolerance: Offset in the negative direction if CAD geometry is a surface.
- pos\_capture\_tolerance: Offset in the positive direction if CAD geometry is a surface.
- include\_rule\_type: Whether the selection is inside or outside the CAD geometry.
- geometry: CAD geometry used to determine the selection (only relevant for geometrical\_rule\_type=`geometry`).
- use\_projection\_normal: Boolean on whether to use the projection normal.
- projection\_normal: Normal direction used to map elements on outlines/curves.
- element\_sets: Preselection of elements in the form of an element set where the rule is applied on (only relevant for geometrical\_rule\_type=`element\_sets`).

### Returns

The created rule.