LEOCAD(1)

πŸ’– LEOCAD πŸ’– β€” the CAD program for LEGO models (yes, that's the whole vibe)

okay so bestie, gather round, because leocad is about to become your new main character ✨ This is the manual page for it, from the General Commands Manual β€” and we're gonna go through everything, no skipping, no cap πŸ’…


🌸 SYNOPSIS 🌸

leocad [OPTIONS] [INFILE]

πŸŽ€ DESCRIPTION πŸŽ€

LeoCAD is a CAD program for creating virtual LEGO models 🧱✨ It has an easy to use interface and includes thousands of different parts in its library. Like... thousands. The way that it just has every part you could ever want? Obsessed 🫢


✨ OPTIONS ✨

Below is a summary of all of the options that LeoCAD accepts, fr fr. Many options have two equivalent names β€” one is a single letter preceded by -, and the other is a long name preceded by -- (iykyk, it's giving classic Unix). Brackets ([ and ]) indicate that an option takes an optional parameter πŸ™ˆ

  • infile β€” Loads the project file infile πŸ’–
  • -l path, --libpath path β€” Set the parts library location. Lowkey essential if your parts live somewhere spicy 🌈
  • -i [outfile.ext], --image [outfile.ext] β€” Saves a picture to outfile.ext in the image format specified by ext and exits 😭 like it renders and dips. If outfile is not given then the program will use a name based on infile. The file format is selected by ext and can be gif, bmp, png or jpg (if ext is not present then the default preferences format will be used). Slay, but read the ext carefully bestie πŸ‘‘
  • -w width, --width width β€” Sets the width of the picture to width πŸ“
  • -h height, --height height β€” Sets the height of the picture to height πŸ“
  • -f time, --from time β€” Start saving pictures at the step time. Steps start at 1 ⭐ (not zero!! not zero!!)
  • -t time, --to time β€” Save pictures until the step time 🏁
  • -s submodel, --submodel submodel β€” Sets the active submodel to submodel πŸ¦‹
  • -c camera, --camera camera β€” Sets the active camera to camera πŸ“Έ
  • -ss id, --stud-style id β€” Set the stud style. Valid values are: 0=Plain, 1=Thin Lines Logo, 2=Outline Logo, 3=Sharp Top Logo, 4=Rounded Top Logo, 5=Flattened Logo, 6=High Contrast, 7=High Contrast with Logo πŸ’… (yes there are eight whole stud aesthetics, we stan a detail-oriented icon)
  • --viewpoint front | back | left | right | top | bottom | home β€” Sets the viewpoint to one of the predefined view angles πŸ‘€
  • --camera-angles latitude longitude β€” Set the camera angles in degrees around the model 🌍
  • --camera-position x y z tx ty tz ux uy uz β€” Set the camera position, target and up vector using the LeoCAD coordinate system 🎯
  • --camera-position-ldraw x y z tx ty tz ux uy uz β€” Same energy, but Set the camera position, target and up vector using the LDraw coordinate system 🧚 (different coordinates, same drama)
  • --orthographic β€” Use an orthographic projection πŸ“¦
  • --fov degrees β€” Set the vertical field of view used to render images πŸ”­
  • --zplanes near far β€” Set the near and far clipping planes used to render images (1 <= near < far) ⚠️ like it literally says 1 <= near < far, respect the math bestie
  • --fade-steps β€” Render parts from prior steps faded 🌫️
  • --no-fade-steps β€” Do not render parts from prior steps faded 🚫
  • --fade-steps-color color β€” Color to use for rendering faded parts. (#AARRGGBB where AA, RR, GG, and BB are hexadecimal values for alpha, red, green, and blue respectively.) 🎨
  • --highlight β€” Highlight parts in the steps they appear ✨
  • --no-highlight β€” Do not highlight parts in the steps they appear πŸ™…
  • --highlight-color color β€” Color to use to highlight parts, (#AARRGGBB where AA, RR, GG, and BB are hexadecimal values for alpha, red, green, and blue respectively.) πŸ’›
  • --shading wireframe | flat | default | full β€” Select shading mode for rendering 🌈
  • --line-width width β€” Set the width of the edge lines ✏️
  • --aa-samples count β€” AntiAliasing sample size (1, 2, 4, or 8) πŸ” (those four numbers, nothing else!)
  • -scc #AARRGGBB, --stud-cylinder-color #AARRGGBB β€” High contrast stud cylinder color πŸŽ€
  • -ec #AARRGGBB, --edge-color #AARRGGBB β€” High contrast edge color πŸ–οΈ
  • -bec #AARRGGBB, --black-edge-color #AARRGGBB β€” High contrast edge color for black parts πŸ–€
  • -dec #AARRGGBB, --dark-edge-color #AARRGGBB β€” High contrast edge color for dark color parts πŸŒ‘
  • -aec, --automate-edge-color β€” Enable automatically adjusted edge colors πŸ€–
  • -cc float, --color-contrast float β€” Set the near and far clipping planes used to render images (1 <= near < far) 😭 okay so this is literally what the original says, bestie β€” yes it's the clipping-planes description on an option named color-contrast. Not me questioning the docs πŸ’€ I'm just the messenger, copying it exactly.
  • -ldv float, --light-dark-value float β€” Set the value to indicate a light or dark color πŸ’‘
  • -obj [outfile.obj] β€” Exports the model to wavefront format πŸ“€
  • -3ds [outfile.3ds] β€” Exports the model to 3DS format πŸ“€
  • -dae [outfile.dae] β€” Exports the model to COLLADA DAE format πŸ“€
  • -html [path] β€” Creates an HTML page for the model 🌐 (web icon behavior, honestly)
  • -v, --version β€” Output version information and exit 🏷️
  • -?, --help β€” Display a brief usage synopsis and exit πŸ†˜

πŸ¦‹ ENVIRONMENT πŸ¦‹

LEOCAD_LIB may be set to the path of the parts library 🧚 (basically the environment-variable twin of --libpath, iykyk)


🌟 EXAMPLES 🌟

$ leocad car.lcd -i car.png -w 640 -h 480

This will start LeoCAD, load the file car.lcd, create a png called car.png with a resolution of 640x480 and exit when done πŸ”₯ one command, whole render, and it dips. Iconic.


πŸ’œ FILES πŸ’œ

  • ~/.config/LeoCAD Software/LeoCAD.conf β€” User preferences file πŸ—‚οΈ (yes the folder has a space in it, don't come for me)

πŸ’€ BUGS πŸ’€

If you find any bugs please report them at https://github.com/leozide/leocad/issues πŸ› no gatekeeping, tell the devs


πŸ‘‘ AUTHOR πŸ‘‘

LeoCAD is written by Leonardo Zide <leozide@gmail.com>. You can visit the LeoCAD homepage at https://www.leocad.org/ 🫢

This manual page was originally written by Patrick Mahoney <pat7@gmx.net>, for the Debian GNU/Linux system (but may be used by others). It has since been edited by others ✨ (credit where credit's due, always)


and that's the whole page, bestie πŸŒˆπŸ’– this version of the manpage comes from 18 September 2026 πŸ’… go build something gorgeous with it β€” mwah πŸŽ€

πŸ“¦ where this page comes from