UNITS(nged)
Sets the units being used in mged. Without arguments, returns the current units being used in mged.
πΈ NAME πΈ
units β sets the units being used in mged. And if you give it no arguments at all, it just hands you back the current units being used in mged. π
β¨ SYNOPSIS β¨
units [-s] [units_type]
π DESCRIPTION π
okay so, bestie, listen: with no arguments, it returns the current type of units that mged is using. That's it. That's the whole vibe check. π
But if you pass the -s option, the current unit name gets reported tersely β like, without the surrounding explanatory sentence. Just the name, straight to the point, no extra commentary. Iconic behavior honestly.
Now the main character part: if you actually specify a units_type, mged switches to editing in the units you indicated. Important lore π§ β the actual database is always stored in millimeters, and the display is adjusted to whatever units you chose. So the real data stays in mm, only the display changes. Periodt.
And if the units_type you specified on the command line is one of the types allowed, it will be written to the database file as the preferred units, and succeeding invocations will use those units. It remembers. π«Ά
The units_type strings that will be remembered as the preferred editing unit are as follows:
mmβ millimetersmillimeterβ millimeterscmβ centimeterscentimeterβ centimetersmβ metersmeterβ metersinβ inchesinchβ inchesftβ feetfootβ feetfeetβ feetumβ micrometers
units_type strings that may be used, but will not be remembered as the preferred editing units, are as follows:
angstromdecinanometernanometernmmicronmicrometerkmkilometercubitydyardrdrodmimilenmilenautical mileauastronomical unitlightyearpcparsec
π lowkey important: those second-list units work fine, they just don't get saved as your preferred editing unit. Don't come for me when it doesn't stick, okay? π
π₯ EXAMPLES π₯
The example shows the use of the units command with a units_type argument to switch the editing units.
Example 1. Switch the editing units to inches.
mged>units in
Switch to editing in inches and remember this as the preferred editing units for this database. Slay. β¨
π AUTHOR π
BRL-CAD Team π
π¦ BUG REPORTS π¦
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org.
okay that's the whole thing, bestie β this has been UNITS(nged) from BRL-CAD (that's the source/version, no cap), and we are so done here. go forth and measure things correctly π
ππ
π¦ 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