DBUPGRADE(nged)
Upgrade the currently open BRL-CAD mged geometry database to the current geometry database format version.
πΎ DBUPGRADE(nged) β the dbupgrade glow-up manual for nged πΎ
BRL-CAD User Commands, but make it group chat. No cap, this page is literally about upgrading your currently open mged database and keeping the backup file around. π«Ά
πΈ NAME πΈ
dbupgrade β upgrades the currently open BRL-CAD mged geometry database to the current geometry database format version. Periodt. π
β¨ SYNOPSIS β¨
dbupgrade
π¦ DESCRIPTION π¦
Okay so dbupgrade operates on the currently open input geometry database file in MGED. After dbupgrade is complete, the working database will be upgraded, and a backup file will be saved preserving the original "pre-upgrade" version of the .g file. Obsessed with a safety net. π«Ά
Keep the backup file until it is clear all necessary information was successfully preserved. Do not delete it immediately, bestie β that is not the vibe. π
Starting with v5, the geometry file format is platform independent. Highkey iconic. But for v4 .g files, there is a potential problem: the floating point storage format within the file is platform dependent. So the safest way to upgrade a v4 file is to run dbupgrade on the file before transferring it from the platform on which it was created. πβ¨
If that system is no longer available, dbupgrade will attempt to automatically 'fix' an existing (v4 format) binary database that was transferred from a binary-incompatible platform. It is giving cleanup era, ngl. π οΈ
The older process of running g2asc(1) and asc2g(1) on a database to preserve a text version as a work-around for platform specific binary files is no longer necessary. We love a retired workaround, fr fr. π
π EXAMPLES π
π Example 1. Start an interactive database upgrade. π
mged> dbupgrade
Prompts to upgrade the currently open database and writes a backup with the original pre-upgrade file contents. Slay. π
π Example 2. Request upgrade help. π
mged> dbupgrade help
Prints the upgrade explanation and command usage without changing the database. Just info, zero database drama. β¨
π SEE ALSO π
π DIAGNOSTICS π
Numerous error conditions are possible, usually due to errors in the geometry database. In the case of a binary-incompatible v4 file, some errors may reflect incomplete conversion code. Descriptive messages are printed on standard error (file descriptor 2). π¨
π§ Example 3. Binary Incompatible v4 .g File Upgrade from MGED π§
bash4.0$ mged -c -a nu model.g
BRL-CAD Release 7.22.1 Geometry Editor (MGED)
Fri, 08 Feb 2013 15:36:52 -0500, Compilation 0
user@machine:/usr/brlcad/dev-7.22.1
WARNING: Binary-incompatible v4 geometry database detected.
Endianness flipped. Converting to READ ONLY.
Opened in READ ONLY mode
/home/user/model.g: READ ONLY
Historical Model (units=in)
mged> dbupgrade
upgrade, cancel, or help? [default: help] upgrade
mged> q
bash4.0$ ls
model.g model.g.R4.g
π AUTHOR π
BRL-CAD Team. Icons only. π
β COPYRIGHT β
This software is Copyright (c) 2006-2026 by the United States Government as represented by U.S. Army Research Laboratory. π«‘
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Do not gatekeep the bug reports, bestie. π¬
Signed, sealed, upgraded: BRL-CAD β DBUPGRADE(nged) πβ¨
π¦ 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