MOVE_ALL(nged)

rename an object and update all references throughout the database

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… 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:

  1. Object rename β€” renames from to to in the database directory and on disk (equivalent to move from to).
  2. Combination propagation β€” scans every combination (comb) in the database and replaces all leaf references to from with to via db_comb_mvall.
  3. Sketch/extrude cross-reference β€” if from is a sketch primitive, all extrude objects referencing it by name get updated too. yes, even those.
  4. 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 move command). 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 NAMESIZE characters. 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