* claim: #7567 * Sketch: a drawing tool's value box takes `name = value` (#7567) While drawing, a value box (circle diameter, line length, rectangle width and height, slot, arc, polygon) now accepts `name = expression` and `#name = expression`, as the Dimension tool already does: the shape is drawn at the expression's size and its dimension defines and uses the user parameter `name`, in one undo step. - sketch.draw.dimensioned checks a definition's right-hand side, read as the new parameter will hold it (a bare number in the design's unit), and passes the text on to sketch.dimension; the reply lists `defined`. - The value boxes size the preview and validate by the right-hand side, refuse a definition in a box that is not a dimension (polygon sides, rounded rectangle corner radius, conic rho), and the status line names the parameters defined. - Guides: parameters and sketching. Fixes #7567 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,9 @@ cursor, replacing selected text and keeping what you typed, so typing `10 + ` an
|
||||
`d1` gives `10 + d1`. Add arithmetic such as `/ 2` to build a dependent dimension. Press **Enter** to apply
|
||||
the expression or **Escape** to cancel the edit. When placing a new dimension, `width = 40` (or `#width = 40`) adds
|
||||
the user parameter `width` with that value (a bare number is in the design's units) and
|
||||
dimensions with it; a name that is already taken is refused.
|
||||
dimensions with it; a name that is already taken is refused. The value boxes shown while drawing
|
||||
a shape (a line's length, a rectangle's width and height, a circle's diameter) take the same
|
||||
form: the shape is drawn at that size, and its dimension uses the new parameter.
|
||||
Add and edit user parameters through the existing **Change Parameters** command.
|
||||
|
||||
In the MANAGE tab's PARAMETERS section, click **Parameters** to open the user and model
|
||||
|
||||
@@ -44,6 +44,14 @@ drop-down. The button and the family's shortcut start the variant you picked las
|
||||
shortcut such as L can start a Midpoint Line; pick the variant you want from the drop-down to
|
||||
change it ([Keyboard shortcuts](shortcuts.md)).
|
||||
|
||||
Once a shape's first point is down, value boxes (a line's length and angle, a rectangle's width
|
||||
and height, a circle's diameter…) follow the cursor. Typing goes into the first box, Tab moves to
|
||||
the next and Enter places the shape; each typed value becomes a dimension. A value is an
|
||||
expression (`25`, `1 in`, `d1 * 2`), or `width = 20` (also `#width = 20`), which also adds the
|
||||
user parameter `width` and dimensions with it, as when [placing a dimension](parameters.md). A
|
||||
box that does not become a dimension (a polygon's sides, a rounded rectangle's corner radius)
|
||||
takes a value only.
|
||||
|
||||
The Sketch Palette's **Construction Geometries** option hides construction curves while you
|
||||
work. A hidden construction curve cannot be picked by a click or by a box. Nothing invisible
|
||||
is selectable. The option belongs to one sketch and is saved with the design. Centerlines are
|
||||
|
||||
Reference in New Issue
Block a user