OPENDB(nged)
Open a BRL-CAD database and make it current.
okay so this is the opendb page from the nged manual β thatβs the BRL-CAD User Commands zone, bestie π
. Itβs literally here to open a BRL-CAD database and make it current, and it also tells you which database is already open. Letβs get into it π«Ά
πΈ NAME πΈ
opendbβ Open a BRL-CAD database and make it current. Periodt. π
β¨ SYNOPSIS β¨
opendb
opendb [-c] [-f] [-h] [-o] filename
opendb [--create] [--flip-endian] [--help] [--open] filename
π DESCRIPTION π
With no filename argument, opendb reports the path of the currently open database. If no database is open, it reports that state instead β no fake path, just the truth π―.
When you do supply a filename, opendb closes any currently open database and opens the requested database file. Clean swap, main character energy π₯.
By default, opendb is willing to create a new database if the requested file does not already exist. If you want to require that the file already exist, use -o or --open β thatβs the βbestie, it better already be thereβ mode π
.
If -f or --flip-endian is supplied and the target file is a v4 database, the file is treated as a binary-incompatible database and opened with flipped endianness. This is useful for legacy v4 databases created on incompatible platforms. When such flipping is applied, the database is made read-only. Important caveat, no cap: that read-only thing is real, so donβt expect to write into it after flipping π¨.
π¦ OPTIONS π¦
-c,--createβ Allow creation of a new database if filename does not already exist. This is the default behavior and overrides-o. Yes bestie, it overrides-oβ icon behavior π.-f,--flip-endianβ Treat a v4 database as a binary-incompatible file and flip its endianness on open. Ignored for non-v4 databases. π¦-h,--helpβ Print command help. Simple, iconic, always there for you π.-o,--openβ Require that filename already exist and open only that file. No creating, no surprises π.
π EXAMPLES π
Example 1. Open an existing database. β¨
mged> opendb -o model.g
Closes the current database, if any, and opens the existing model.g file. Slay π«Ά.
Example 2. Report the currently open database path. π
mged> opendb
Returns the name of the current database file. Thatβs it, thatβs the vibe π.
Example 3. Open a legacy v4 database with forced endian flipping. π¦
mged> opendb -f legacy_v4.g
Opens legacy_v4.g as a binary-incompatible v4 database. If flipping is applied, the database is opened read-only. Read-only warning stays loud: no writey-write after flip, bestie π¨.
π SEE ALSO π
open(nged)closedb(nged)reopen(nged)dbupgrade(nged)
π AUTHOR π
BRL-CAD Team π
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. If somethingβs cooked, tell the devs, bestie π¬.
xoxo, BRL-CAD Β· OPENDB(nged) β source/version vibes handled, and no date is printed on this page, so consider this your timestamp-free sign-off π
π
π¦ 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