CLOSEDB(nged)

Close the current database and clear displayed geometry.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… CLOSEDB (nged) β€” your girl's guide to shutting it down

okay so real quick, this is a page from the BRL-CAD User Commands manual, and it's about closedb β€” the little command that says "we're done here" to your database. bestie, it's short, it's sweet, it's iconic. let's get into it πŸŽ€


✨ NAME ✨

closedb β€” close the current database and clear displayed geometry 🫢


✨ SYNOPSIS ✨

closedb

that's it. no flags, no args, no drama. she takes nothing and she gives you a clean slate πŸ’…


✨ DESCRIPTION ✨

okay so closedb does three things and honestly? it eats every time:

  • closes the currently open database πŸ”’
  • clears any displayed geometry 🧹
  • tears down all the related GED state that's associated with that database πŸ’€

it's giving "main character energy" but for cleanup. the whole vibe of that database? gone. no cap.

and here's the chill part: if no database is open, closedb just succeeds as a no-op. like, it doesn't throw a fit, it doesn't error out, it literally just shrugs and moves on 😌 truly unbothered behaviour.

also, fun fact you should absolutely know: MGED also accepts the alternate command name close for the same operation. two names, one queen πŸ‘‘ iykyk.


🌸 EXAMPLES 🌸

Example 1. Close the current database after opening a model.

mged> opendb model.g mged> closedb

what this does: closes model.g and removes any geometry from the current display ✨ so you opened a model, and then you said "ok we're done" and the display got cleared. chef's kiss.


πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, bestie, they're all in the family:

  • close(nged)
  • opendb(nged)
  • reopen(nged)
  • zap(nged)

πŸ’– AUTHOR πŸ’–

BRL-CAD Team β€” the icons who made all this happen 🌈


πŸ™ˆ BUG REPORTS πŸ™ˆ

found a bug? a problem? something lowkey cursed? don't suffer in silence β€” reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org πŸ“§ they wanna hear from you, fr fr.


and that's the whole page, bestie πŸ’œ it came to us courtesy of BRL-CAD and the CLOSEDB(nged) manual β€” go close some databases, slay, and remember: no database open is still a success. periodt βœ¨πŸŽ€

πŸ“¦ where this page comes from