|
| 1 | +## Purpose |
| 2 | + |
| 3 | +The drawing `generate_drawing_package` builds has a title block whose |
| 4 | +fields each fit their box, whatever the values' lengths. |
| 5 | + |
| 6 | +## ADDED Requirements |
| 7 | + |
| 8 | +### Requirement: Every linked field fits its box |
| 9 | +The title-block step SHALL fit every sheet-format note linked to a property |
| 10 | +(`$PRP:"name"` or `$PRPSHEET:"name"`): its text SHALL be shrunk until it |
| 11 | +ends before the next note in its row (or the title block's right edge), |
| 12 | +no smaller than the minimum height, and no larger than |
| 13 | +`title_block_text_height_mm` when that is given. A property shown by more |
| 14 | +than one note SHALL be fitted once, by its first note. |
| 15 | + |
| 16 | +#### Scenario: A long material name |
| 17 | +- **WHEN** the part's material name is longer than its cell |
| 18 | +- **THEN** the reply's `title_block` has an entry for it with `fits` true, |
| 19 | + and its text height is below the format's |
| 20 | + |
| 21 | +#### Scenario: A short value |
| 22 | +- **WHEN** a field's value already fits |
| 23 | +- **THEN** its entry has `fits` true and the same height before and after |
| 24 | + |
| 25 | +### Requirement: Each fitted field is named in the reply |
| 26 | +The reply's `title_block` SHALL name the DWG NO. `drawing number` and the |
| 27 | +TITLE `title`; the drawing's own fields SHALL use the names |
| 28 | +`update_title_block` takes, with spaces (`drawn by`, `drawn date`, |
| 29 | +`revision`, `company`); any other field SHALL be named by its property. |
| 30 | + |
| 31 | +#### Scenario: The ISO A3 format |
| 32 | +- **WHEN** a drawing is generated on `a3 - iso` |
| 33 | +- **THEN** `title_block` lists `drawing number` and `title`, and an entry |
| 34 | + for each other property the format links |
| 35 | + |
| 36 | +### Requirement: The subtitle is the TITLE's second line |
| 37 | +A `subtitle` SHALL be shown as a second line of the TITLE field (ISO 7200's |
| 38 | +supplementary title), with the TITLE's text height at most 60% of the |
| 39 | +format's (or the caller's cap, if smaller). The company field SHALL show |
| 40 | +`company` only. |
| 41 | + |
| 42 | +#### Scenario: A subtitle and no company |
| 43 | +- **WHEN** `subtitle` is `Base support` and `company` is empty |
| 44 | +- **THEN** the TITLE reads `Package Block` then `Base support`, and the |
| 45 | + company field is empty |
0 commit comments