Repository navigation
Description
What I'd like
Pick one or more frame members in the model and change them to a different member type: a stock item from the profile library that defines the section and its size, and its material when it has one. For example:
- SHS 40×40×3 mild steel → SHS 50×50×4 mild steel (upsize a member that carries load);
- SHS 40×40×3 mild steel → CHS 42.4×3 mild steel (a different section where something has to fit or bolt to it);
- SHS 40×40×3 mild steel → SHS 40×40×3 stainless 304 (a member that gets wet).
The material is not picked on its own in this step. A section and a material chosen independently can make a member that nobody stocks; choosing a library entry means every member is something that actually exists and can be bought. To use a new combination, add it to the library first.
Material is optional, though. A library entry can be just a section and size with no material, for someone laying out a frame who only cares about profiles. Members made from such an entry simply have no material assigned.
The selection can span:
- several frames: members from different Frame Member features, in one go;
- any kind of member path: members laid along 2D or 3D sketch lines.
Only the picked members change. Each keeps its path, its placement point and its turn, and the other members of each feature are untouched.
This is how frames are actually designed: lay out the whole frame in one member type, then change the few members that need something else. Material matters as much as the section for mass, the cut list, and stress and deflection checks (see my comment on #19787 about engineering properties).
What exists today
| Where | What it changes | Scope |
|---|---|---|
main: Edit Feature on a Frame Member (#4004) |
Profile type and dimensions | every member in the feature |
#19787 (open): frame.library.replace {from, to} |
Moves members from one library profile to another; editing a library entry rebuilds its members | every member made from that library profile |
#19787 (open): library entry material |
A material name stored with the stock | text only; its design doc plans to assign it to every member made from the entry |
main: material.assign {bodies, material} |
A body's physical material | one body, by name, separate from its section |
What happens today (on main)
A 600 × 400 frame sketch with a cross-member in the middle, made as one Frame Member feature in 40×40×3 rectangular tube. The cross-member (orange) is the one that carries the load and should be upsized.
- Before: all five members are 40×40×3.
- Edit Feature on the Frame Member, profile set to 80×80×5. Every member changes, not just the cross-member: the feature has one profile for all its members.
Steps: Sketch on XY a 600 × 400 rectangle and a line across its middle; Weldments › Frame Member, Rect Tube 40×40×3, all lines; then Edit Feature, width 80, height 80, wall 5.
So today the only way to give one member a different section is to take its line out of the feature and make a second Frame Member feature for it, which changes its corners and scatters one frame across several features. Its material can be set with material.assign, but that is a separate choice from its section, so nothing stops a combination that isn't stocked.
Proposal
Follow the pattern of Rotate Member (#15071), which already does a per-member change without splitting the feature.
- Weldments › Modify › Change Member: pick one or more members, then pick the new member type from the profile library (Frames: a profile library of your stock, picked by type, group and size, with named placement points #19787) by Type, Group and Size. Each entry shows its material, or "no material", so section, size and material are chosen as one.
- Selection: click members in the view or the Browser, box-select, or pick a whole feature to take all its members. Members from different Frame Member features can be mixed, and so can members on 2D and 3D sketch lines. The dialog lists what's picked, grouped by feature, and each member can be removed from the list.
- Only library entries are offered: no free dimensions, no profile sketch and no separate material row. Save to Library in the Frame Member window (Frames: a profile library of your stock, picked by type, group and size, with named placement points #19787) is how a new member type gets added.
- Each use adds one timeline step: every OK of Change Member (or
frame.change_membercall) adds a new step,Change1,Change2, …, as each OK of Rotate Member adds aframe_member_turnstep. A use never edits an earlier step in place; to alter an earlier change, use Edit Feature on its step.- One step for the whole selection of that use, even across several features, so one Undo reverts all of it. The step sits after the last feature it changes; moving it above one of them is refused, naming that feature.
- It names each member by feature and path id: the sketch or 3D sketch line id. Adding, deleting or reordering paths never moves the change to another member.
- Edit Feature, Delete, Suppress and Undo work as for any step. A later step for the same member wins.
- If a member it names is gone (its line was deleted), the step keeps the rest and reports the missing member, as other features report a lost reference, instead of failing.
- The member keeps its placement. With Frames: place a member by a profile point that stays put when the size changes #15726 / Frames: a profile library of your stock, picked by type, group and size, with named placement points #19787's named placement points (an angle's heel, a channel's web back, a tube's centre), it stays on the same point when its size changes. If the new profile doesn't have that point (heel → round tube), it falls back to the feature's anchor and the step says so.
- A turn from Rotate Member still applies on top of the new profile.
- Material comes from the member type, when it has one.
- An entry with a material: the member's body gets it (linked to the material library, as in my Frames: a profile library of your stock, picked by type, group and size, with named placement points #19787 comment), so mass, physical properties, render, the cut list and any stress or deflection check all use the same material.
- An entry without one: the member has no material assigned, and is treated like any other body with none. Nothing is refused for lacking a material; analysis that needs one says which members have none.
- Changing to an entry with no material clears a material the member got from its previous entry.
- Library link: a changed member follows later edits to its library entry, and
frame.library.replacemoves it like any other member made from that entry. - End caps, trims and the cut list see the new section; the cut list lists the member under its new member type.
- Command: for example
frame.change_member {faces | members: [{feature, path}], library}(library: an entry's id or name, asframe.membertakes it).memberscan name members of several features. Reachable from scripts, the CLI and the control channel. Programmatic calls never open the dialog. - Refusals with a message, never a panic: a face that isn't on a frame member (a selection that mixes in other bodies is refused, naming them), a library entry that doesn't exist or has been removed.
Related
Part of #4003. Depends on #19787 (profile library) and on its entries being able to link to a material (my comment there). Builds on #15071 (Rotate Member) and #15726 (placement by profile point); material libraries from #19614. Touches the same Frame Member code as #17672, #18894 and #18895.
Activity
github-actions commentedon Nov 20, 2026
Claimed by @paulgcrabb through #20131. The claim lapses after 14 days without pushes.