Skip to content

Projects

Christos Georgiou edited this page Nov 25, 2026 · 1 revision

Projects

Draft. Projects work in the command line now. The window cannot open a project yet.

A project puts many objects into one room. For example: a steel rack, a drawer cabinet, a crate and a printed knob. Each object has its own place. One parts list counts the parts of all objects.

What a project holds

  • Objects. An object is an OpenSCAD model, a mesh file (STL or 3MF) or a simple box. Each object has a place: a move in mm and a turn in degrees.
  • Values. Two objects can use the same model with different values. For example, a narrow and a wide shelf from one file.
  • Scenes. A scene is a list of the objects that you see. A scene can also change values. For example, the same rack with one bay and with two bays.
  • Materials. A material gives an object its color and surface.
  • Plugins. The project lists the plugins that its models use.

The project is one file that ends in .cgeocad, in the folder of its models. The Project file page tells the format.

Try the example

The folder examples/projects/storage-room of the source has an example project. Open a terminal in that folder:

cgeocad project check storage-room.cgeocad
cgeocad parts-list storage-room.cgeocad --include-plugins
cgeocad checks storage-room.cgeocad --include-plugins
cgeocad export storage-room.cgeocad -o room.glb --include-plugins
  • project check tells if all files are there.
  • parts-list gives one list for the whole room.
  • checks gives the checks of all objects. The example has two scenes that show the rack with different parts, so you get a warning: the two forms of one object do not use the same parts.
  • export ... -o room.glb writes the room as a 3D file that many viewers can open.

Make your own project

cgeocad project new garage.cgeocad --title Garage
cgeocad project add garage.cgeocad shelf.scad --at 0,0,0
cgeocad project add garage.cgeocad box:400x300x250 --id crate --at 1500,50,0

Each project add adds one object and shows it in the first scene. The Command line page has all options.

Plugins

Plugins run code. A project can come from another person. Thus CgeoCAD does not include the plugins of a project by itself. Add --include-plugins to the command when you trust the file.

Share a project

cgeocad export garage.cgeocad -o garage.zip writes the project folder as one zip file. The zip holds the project file, the models and the SCAD libraries that the models use.

Clone this wiki locally