Show and edit standard part configurations (#2680) (#2681)

Thanks @amolinari-autotex.
This commit is contained in:
amolinari-autotex
2026-10-19 23:07:01 +02:00
committed by GitHub
parent a6b44ab0d3
commit 0b787f8eae
12 changed files with 721 additions and 9 deletions
+31
View File
@@ -59,3 +59,34 @@ New face-attached sketches capture the selected body's producer, certified face
Use `sketch.redefine` with the sketch ID and a new plane to repair or convert an attachment. Its preview is disposable; Apply records one undo step. An optional `author_path` explicitly repairs a missing author placement. Rebinding a repeated owner from another active component requires that path. Changing the target or converting to a fixed plane detaches only the old automatic face borders, retaining their currently evaluated geometry and entity IDs; unrelated projection links remain live. Pending positions on the involved target and author paths are captured with the edit, while unrelated pending positions remain pending.
Paste New remaps internal certified targets and authoring paths to the copied definitions. Timeline paste reports retained external face targets and refuses translating such attachments until an explicit fixed-plane conversion establishes independent geometry. Rename preserves certified body identity; another producer using the same body name cannot repair a lost attachment.
## Change the size of a standard component
An inserted standard part is one component with an active catalogue configuration.
Its Browser entry shows that configuration alongside its placement name, for example
`Screw:1 [M6×20]`. Double-click the entry or choose **Edit** to open its configuration
dialog. The activation radio still activates the component; double-clicking ordinary
components keeps its existing activation behavior. The viewport also offers
**Change Part Size** for a picked standard screw, bolt, nut, washer, pin or bearing.
The dialog starts with the
component's current family, size and actual length, including a non-catalogue
length. Choose a size and, for parts with a length, a length, then confirm with OK.
Cancel leaves the design unchanged.
Resizing regenerates the standard part, replacing any extra features added inside
that component. The dialog warns about this before applying the change.
This edits the component definition: every occurrence of that component receives
the new size. Its occurrences and their placements and joints are retained. Undo
reverts the size change in one step. Insert another standard part when a separate
component with a different size is needed.
The dialog uses the same `parts.library` catalogue and `parts.resize` command as
scripts. It is offered only for inserted standard parts. Other component types
retain their usual feature-editing tools.
The configuration is read from the existing standard-part family, size and length
metadata, so it survives save/reopen and follows undo/redo without renaming any
occurrence. Lengths in the compact configuration name are catalogue millimetres;
the dialog displays lengths in the design's units. General parameter-driven
configurations are outside this change.