[dynTemp] FitFrame max to realgrid
Overview
This rule performs a fit-frame operation on the current frame and caps the result at the RealGridElement boundary.
How it works
The rule reads the planning record to get the RealGridElement coordinates and calculates the current frame's bounding box.
It first checks whether the frame has space to grow toward the grid edge. If no space exists between the frame and the grid boundary, the rule does not execute.
If space exists, the rule performs a fit-frame operation from the selected anchor point. It then compares the resulting new dimensions against the available space to the grid edge, reduced by the margin.
- If the fit-frame result fits within the grid boundary, the resize is complete.
- If the fit-frame result would exceed the grid boundary, the frame is capped at the grid edge minus the margin.
This cap applies separately to height and, unless "Protect width" is enabled, to width as well.
When "Protect width" is enabled, the width is left unchanged and only the height is adjusted.
Parameters
| # | Name | Data type | Default | Description | List values (ISON) |
| Anchor point | Dropdown | The corner of the frame that stays fixed during the fit-frame operation. | :I:oben links:I:oben rechts:I:unten rechts:I:unten links (translated by the comet plugin) | ||
| Margin to grid edge in mm | String | 0.0 | Gap between the resized frame and the RealGridElement edge. Applied only when the fit-frame result reaches the grid boundary. Leave empty to use the default of 0.0 mm. | ||
| Protect width of single line text | Dropdown | When set to Yes, the frame width is not changed. Only the height is adjusted. | :I:ja:I:nein (translated by the comet plugin) |