MOVE_ALL(nged)
rename an object and update all references throughout the database
π MOVE_ALL(nged) β the BRL-CAD glow-up rename command
okay so bestie, welcome to the MOVE_ALL(nged) page π this is a BRL-CAD User Command, and honestly? it's the main character of renaming. take a seat, we're gonna go through it together.
β¨ NAME β¨
move_all, mvall β rename an object and update all references throughout the database π«Ά
πΈ SYNOPSIS πΈ
move_all [-n] from to
move_all [-n] -f mapping_file
mvall [-n] from to
mvall [-n] -f mapping_file
π¦ DESCRIPTION π¦
The move_all command (also available as mvall, same energy, different name) renames a database object from from to to and then propagates that rename throughout the entire database, updating every single combination that references the old name. it's giving thorough. it's giving "i did the whole thing, not just the easy part."
that makes it a way more thorough alternative to the basic move/mv command β because that one only renames the object itself and then dips π
here's the full set of operations it performs, in order:
- Object rename β renames from to to in the database directory and on disk (equivalent to
move from to). - Combination propagation β scans every combination (
comb) in the database and replaces all leaf references to from with to viadb_comb_mvall. - Sketch/extrude cross-reference β if from is a sketch primitive, all extrude objects referencing it by name get updated too. yes, even those.
- Display list update β scans the current display list and updates any path component that matches from β at any depth in the hierarchy, not just the top level (unlike the basic
movecommand). she goes deep. π
π Options π
-nβ Dry-run mode. instead of doing the rename, it prints a list of all combination names that currently reference from. No changes are made to the database. it's the "let me just look first" option and we respect her π-f mapping_fileβ Read rename pairs from a file instead of the command line. Each line of the file must contain two whitespace-separated names (from to). Lines beginning with#are treated as comments and ignored. batch mode, slay.
π Notes π
- Returns an error if to already exists in the database. no stealing names, periodt.
- In version 4 (v4) databases, the new name is limited to
NAMESIZEcharacters. keep it cute, keep it short β
π₯ EXAMPLES π₯
Example 1. Rename and propagate throughout the database
mged> move_all old_part.s new_part.s
Renames old_part.s to new_part.s and updates every combination in the database that referenced old_part.s. one command, whole database handled π«Ά
Example 2. Dry-run: find all references before renaming
mged> move_all -n wing.r fuselage_wing.r
Prints the names of all combinations that reference wing.r without making any changes. super useful for previewing the impact of the rename before you commit, ngl. vibe check first, always π
Example 3. Batch rename from a mapping file
mged> move_all -f renames.txt
Reads renames.txt and applies each rename pair listed. Example file contents:
# Rename all parts for new revision
old_hub.s new_hub.s
old_spoke.s new_spoke.s
# old_rim.s skipped intentionally
π AUTHOR π
BRL-CAD Team
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β pls do tell them, they wanna know ππ«Ά
okay that's the whole page, you ate that bestie π this was MOVE_ALL(nged) from the BRL-CAD crew, footer vibes and all β go rename something iconic β¨π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms