    

 ## On this page

  

 

 # create\_variable\_offset\_selection\_rule

 Last update: 16.07.2026 

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

## Model.create\_variable\_offset\_selection\_rule(name, id=None, radius\_origin=None, radius\_direction=None, edge\_set=None, offsets=None, angles=None, element\_set=None, relative\_rule\_type=False, include\_rule\_type=True, use\_offset\_correction=False, distance\_along\_edge=False, inherit\_from\_lookup\_table=True)

Create new slab offset rule.

### Parameters

- name: Name of the rule.
- id: The unique ID of the rule.
- radius\_origin: Reference point of the 1D lookup table used for the offsets.
- radius\_direction: Normal of the cutting plane.
- edge\_set: Guide/axis of variable tube.
- offsets: 1D lookup table including the radii of the variable tube.
- angles: Optional taber edge angles.
- element\_set: Preselection of elements in the form of an element set where the rule is applied on.
- include\_rule\_type: Boolean whether to select the element inside or outside the variable tube.
- use\_offset\_correction: Boolean whether to evaluate the radius/offset along the surface.
- distance\_along\_edge: Boolean whether to evaluate the distance along the edge or direction of the rule. Default is ‘False’.
- inherit\_from\_lookup\_table: Boolean whether to inherit origin and direction from the attached lookup table. Default is ‘False’.

### Returns

The created rule.