move from to
mv from to
MOVE(nged)
NAME
move, mv - rename a database object
On this page
SYNOPSIS
DESCRIPTION
The move command (also available as mv) renames an existing database object from from to to. It is a pure rename operation — the object’s geometry is unchanged; only its name in the database directory is updated.
The command performs the following steps:
-
Looks up
fromin the database; returns an error if it does not exist. -
Verifies that
todoes 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 totoso the display remains consistent.
EXAMPLES
mged> move old_name.s new_name.s
Renames the solid old_name.s to new_name.s in the database.
mged> mv wing_left.r wing.r
Renames wing_left.r to wing.r. The mv alias is equivalent to move.
mged> move box.s sphere.s
sphere.s: already exists
Returns an error if sphere.s already exists in the database. The original box.s is left unchanged.
AUTHOR
BRL-CAD Team
BUG REPORTS
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org