WHATID(nged)

report the region identifier (ident) of a region

πŸ“… published 7.44.0, from nixpkgs unstable

✨ WHATID β€” like, the region-ID finder bestie πŸ’…

okay so real talk, this is the nged command that tells you a region's ident (its region identifier number). It's giving "reverse lookup but make it cute" πŸŽ€

🌸 SYNOPSIS 🌸

whatid region

πŸ’– DESCRIPTION πŸ’–

So the whatid command hands you back the region identifier number (the ident) of whatever region you point at. You gotta give it exactly one region name β€” not zero, not two, exactly one, no cap. ✨

The object you name has to actually exist in the database, and it has to be a region β€” meaning a combination with the region flag set. If it's just some random non-region object, whatid is not the one for you, sorry bestie 😭

The result comes back as an integer. If the named object doesn't exist, or it exists but isn't a region, you get an error. That's the whole vibe check. πŸ’€

Fun fact: this is the literal inverse of whichid, which takes a region ID and gives you back the regions that use it. They're giving complementary main character energy πŸ‘‘

πŸ”₯ EXAMPLES πŸ”₯

Example 1. Get the region ID of a named region

mged> whatid hull.r

Returns the integer region ID assigned to hull.r β€” for example: 1001. Slay, that's your number πŸŽ‰

Example 2. Use the result in a Tcl variable

mged> set id [whatid turret.r] mged> whichid $id

This grabs the region ID of turret.r into a variable, then uses whichid to verify which regions share that ID. Lowkey obsessed with this workflow, ngl 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

  • whichid(nged)
  • whichair(nged)
  • idents(nged)

πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” icons only, fr fr πŸ’œ

🌈 BUG REPORTS 🌈

Found a bug or a problem? Spill the tea via electronic mail to devs@brlcad.org πŸ“§ β€” they genuinely wanna hear it.


that's the whole page, bestie βœ¨πŸ’…πŸ¦‹ β€” BRL-CAD's WHATID(nged) manual page, dated like the classic it is, brought to you with love by the one and only BRL-CAD crew πŸŽ€

πŸ“¦ where this page comes from