    

 ## On this page

  

 

 # create\_parallel\_selection\_rule

 Last update: 16.07.2026 

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

## Model.create\_parallel\_selection\_rule(name, id=None, origin=None, direction=None, pos\_distance=None, neg\_distance=None, relative\_rule\_type=False, use\_global\_coordinate\_system=None, rosette=None, include\_rule\_type=True)

Create a new parallel selection rule.

### Parameters

- name: Name of the rule.
- origin: Origin of the parallel selection rule.
- direction: Direction of the parallel selection rule.
- pos\_distance: Positive distance of the parallel selection rule.
- neg\_distance: Negative distance of the parallel selection rule.
- relative\_rule\_type: If True, then the parameters are evaluated relative to size of the object.
- use\_global\_coordinate\_system: Use global coordinate system to define rule parameters.
- rosette: Rosette used if use\_global\_coordinate\_system is false.
- include\_rule\_type: Include or exclude area in rule.

### Returns

The created parallel selection rule.