forked from 1b-agent/fieldcraft-upstream
model: rename a definition and every reference to it (model.rename, #290)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
1 parent
587cbc3b01
commit
a0ae8b2111
7 files changed
+458
-2
No files matched your search
@@ -834,6 +834,33 @@ pub const STEP_ACTIVATE: &[Field] = &[
|
||||
flag("active", "Active").help("On: they act in the step. Off: they are switched off from it on.").def("true"),
|
||||
];
|
||||
|
||||
pub const RENAME: &[Field] = &[
|
||||
choice(
|
||||
"kind",
|
||||
"Kind",
|
||||
&[
|
||||
("set", "Set"),
|
||||
("material", "Material"),
|
||||
("section", "Section"),
|
||||
("step", "Step"),
|
||||
("boundary_condition", "Boundary condition"),
|
||||
("load", "Load"),
|
||||
("reference_point", "Reference point"),
|
||||
("coupling", "Coupling"),
|
||||
("contact", "Contact"),
|
||||
("tie", "Tie"),
|
||||
("point_mass", "Point mass"),
|
||||
("spring", "Spring"),
|
||||
("fluid_domain", "Fluid domain"),
|
||||
("datum", "Datum"),
|
||||
],
|
||||
)
|
||||
.help("What kind of definition to rename.")
|
||||
.req(),
|
||||
text("from", "Name").help("Its current name.").req(),
|
||||
text("to", "New name").help("Every definition that refers to it is changed to the new name.").req(),
|
||||
];
|
||||
|
||||
pub const UNITS: &[Field] = &[choice(
|
||||
"system",
|
||||
"Unit system",
|
||||
|
||||
Reference in new issue
Block a user