MOVE(nged)
rename a database object
π MOVE(nged) β the BRL-CAD glow-up where your object gets a new name
okay so bestie, welcome to the move page from the BRL-CAD User Commands lineup π this one is genuinely so simple and so iconic β it's the rename era.
β¨ NAME β¨
move, mv β rename a database object. that's it. that's the whole job. π¦
β¨ SYNOPSIS β¨
move from to
mv from to
β¨ DESCRIPTION β¨
The move command (which also goes by mv, because aliases are a vibe π
) renames an existing database object from from to to. And like β this is a pure rename operation, no cap. The object's geometry is completely unchanged; only its name in the database directory gets updated. nothing else. the geometry is not bothered. it's living its truth. πΈ
Here's the little step-by-step of what the command actually does, bestie:
- Looks up from in the database; returns an error if it does not exist.
- Verifies that to does not already exist; returns an error if it does.
- Reads the object's internal data, renames it in the in-memory directory via
db_rename, then writes it back under the new name. - Updates the current display list: if the top-level path element of any displayed object matches from, it is updated to to so the display remains consistent.
like, step 4 is the underrated main character honestly β your view stays coherent because it does that. π
π₯ EXAMPLES π₯
Example 1. Rename an object
mged> move old_name.s new_name.s
Renames the solid old_name.s to new_name.s in the database. glow-up complete, bestie β¨
Example 2. Using the mv alias
mged> mv wing_left.r wing.r
Renames wing_left.r to wing.r. The mv alias is equivalent to move β same energy, shorter typing. π«Ά
Example 3. Attempting to rename to an existing name
mged> move box.s sphere.s
sphere.s: already exists
Returns an error if sphere.s already exists in the database. And the original box.s is left unchanged β no damage done, we love a safe failure π
β¨ AUTHOR β¨
BRL-CAD Team π
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. if something's acting up, tell the team, they're on it fr fr π§
lowkey reminder: this whole thing is a rename and only a rename. don't go expecting geometry magic. the geometry is untouched and unbothered, periodt. π
made with love under the BRL-CAD banner β page MOVE(nged), brought to you by the BRL-CAD folks, from the BRL-CAD User Commands collection π¦π
π¦ 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