Table_Adoption_[Index]
Overview
Use this rule to control the column widths of tables in a frame. Pin certain columns to fixed widths; the remaining columns share the leftover space equally. This prevents overset cells in tables with variable content and keeps the layout consistent across products.
How It Works
Selects one or more tables from the frame by index. Use 0 to target all tables. Negative indexes count from the last table; -1 means the last table.
Pins the columns listed in gParam2 to the widths listed in gParam3 in mm. A width of 0.0 keeps the column's current width.
The number of entries in gParam2 and gParam3 must match, or the rule exits with an error.
After pinning, the rule removes oversets from all columns, then distributes the remaining frame width equally among the unpinned columns.
Reference
| # | Name | Type | Default | Description |
|---|---|---|---|---|
| 1 | Table Index | int, comma-separated | 0 | Tables to adapt. 1,2,3 for specific tables; -1 for last table; 0 or empty for all tables |
| 2 | Column Index | int, comma-separated | - | Columns to pin. 1,2,3 for specific columns; -1,-2 for columns from the end |
| 3 | Width | float mm, comma-separated | 0.0 | Width in mm for each column in gParam2, in the same order. Use 0.0 to keep current width |
| 4 | (unused) |