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 π
-lpath,--libpathpath β Set the parts library location. Lowkey essential if your parts live somewhere spicy π-i[outfile.ext],--image[outfile.ext] β Saves a picture tooutfile.extin the image format specified byextand 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 byextand can begif,bmp,pngorjpg(ifextis not present then the default preferences format will be used). Slay, but read the ext carefully bestie π-wwidth,--widthwidth β Sets the width of the picture to width π-hheight,--heightheight β Sets the height of the picture to height π-ftime,--fromtime β Start saving pictures at the step time. Steps start at1β (not zero!! not zero!!)-ttime,--totime β Save pictures until the step time π-ssubmodel,--submodelsubmodel β Sets the active submodel to submodel π¦-ccamera,--cameracamera β Sets the active camera to camera πΈ-ssid,--stud-styleid β 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)--viewpointfront|back|left|right|top|bottom|homeβ Sets the viewpoint to one of the predefined view angles π--camera-angleslatitude longitude β Set the camera angles in degrees around the model π--camera-positionx y z tx ty tz ux uy uz β Set the camera position, target and up vector using the LeoCAD coordinate system π―--camera-position-ldrawx 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 π¦--fovdegrees β Set the vertical field of view used to render images π--zplanesnear far β Set the near and far clipping planes used to render images (1 <= near < far) β οΈ like it literally says1 <= 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-colorcolor β Color to use for rendering faded parts. (#AARRGGBBwhereAA,RR,GG, andBBare 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-colorcolor β Color to use to highlight parts, (#AARRGGBBwhereAA,RR,GG, andBBare hexadecimal values for alpha, red, green, and blue respectively.) π--shadingwireframe|flat|default|fullβ Select shading mode for rendering π--line-widthwidth β Set the width of the edge lines βοΈ--aa-samplescount β AntiAliasing sample size (1,2,4, or8) π (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 π€-ccfloat,--color-contrastfloat β 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.-ldvfloat,--light-dark-valuefloat β 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
- alpine 3.24: leocad-doc 26.09-r0 Β· GPL-2.0-or-later
- arch rolling: leocad 26.09-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms