Skip to content

Plugins

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

Plugins

A plugin adds functions to CgeoCAD for one type of furniture or work. For example, the plugin Slotted angle adds frames and racks of steel angle, and a plan to cut the angles from long beams.

A plugin can add:

  • modules for your .scad files, for example cgeocad_slotted_angle_rack(),
  • a tab at the right of the window, for example Beams, Sheets or Prices,
  • a card below the Unit card, for example the Cabinet card,
  • its own windows, for example Beam cutting plan and Sheet plan,
  • documents that you can save, for example a cut list as PDF,
  • templates and examples on the start page,
  • settings in File > Settings > Plugins.

The plugins of CgeoCAD

Plugin What it does Page
Slotted angle Frames, racks, shelves and bases of slotted steel angle. A plan to cut the angles from raw beams Slotted angle
Cabinet Wood carcasses, shelves, doors and drawers, in a wood cabinet or in a steel frame Cabinet
Sheet cutting A plan to cut the sheet parts from whole sheets, and drawings of each part Sheet cutting
Price list The prices of the parts to buy, the totals and a shopping list Prices

These plugins are in the app. You can also install other versions of plugins from a folder on your computer. See Installed plugins.

Include a plugin

A plugin works only for a model that includes it. A model without plugins looks as before: it has no new tabs and no new menu.

  1. Open a model that uses a plugin, for example a file with use <cgeocad/slotted-angle.scad>.
  2. The Model tab shows a notice: "This model uses Slotted angle 0.1. Include it?"
  3. Click Include. CgeoCAD writes the plugin and its version to plugins: in the .yml file of the model, and builds the model again.

CgeoCAD never includes a plugin when it opens a file. A file from another person can use a plugin, but only your click includes it. Not now hides the notice until you open the model again.

Some plugins have no modules. CgeoCAD offers them when the model can use them:

  • Sheet cutting, for a model with sheet parts.
  • Price list, for a model with a plugin and parts to buy.

The .yml file then has a block like this:

plugins:
  slotted-angle: 0.1.0
  price-list: 0.1.0

To remove a plugin, delete its line from the .yml file.

New model from a template

The start page has the card New from a template. Click a template, for example New: Storage rack, and select a file name. CgeoCAD writes the template to this file, includes its plugin and opens the model.

An Example row opens an example of a plugin. It opens without the plugin, so that you see the include notice.

The Furniture menu

The menu Furniture shows when the model includes a plugin with windows, documents or actions. It opens the windows of the plugins, for example Beam cutting plan, and saves their documents.

Settings of a plugin

  • File > Settings > Plugins has the settings of each plugin for all your models. A change is saved at once.
  • A tab of a plugin can change a setting for this model only. CgeoCAD writes it to settings: in the .yml file. The value of the model wins over the value of the Settings window.

Installed plugins

CgeoCAD can install a plugin package (a .cgeocad-plugin file) from a folder on your computer. The window has no install window yet: use the command line. CgeoCAD has no download from the internet yet.

cgeocad plugin install slotted-angle --index FOLDER --key store.pub
  • FOLDER has the packages and the index index-1.json. store.pub is the public key of the store.
  • CgeoCAD checks the SHA-256 and the signature of the package, the contract version and the SCAD library. A changed byte stops the install.
  • The plugin goes to the plugin folder of CgeoCAD: ~/.local/share/cgeocad/plugins on Linux, ~/Library/Application Support/cgeocad/plugins on macOS, %APPDATA%\cgeocad\data\plugins on Windows. More than one version can be there.
  • An install changes no model. A model keeps the version in its .yml file, also when a newer version is installed.

To use an installed version for one model:

cgeocad plugin update slotted-angle room.scad          # the newest version that CgeoCAD has
cgeocad plugin update slotted-angle room.scad --back   # one version back

CgeoCAD writes the version to plugins: in the .yml file of this model only. Other models keep their version. A project lists a range of versions, for example slotted-angle: "^0.2", and its lock file keeps the exact version. See Project file.

cgeocad plugin list room.scad shows all versions and the version that the model uses. cgeocad plugin remove slotted-angle 0.2.0 removes a version.

A plugin of the store runs in a sandbox: it cannot read or write your files and it has no network access of its own. A call that takes more than 10 seconds stops.

When a plugin stops

If the code of a plugin stops with an error, its tab shows the error and a Restart button. The model still builds, because OpenSCAD makes the geometry.

Command line and AI assistant

  • cgeocad plugin list, install, update, remove and dev. See Command line.
  • An AI assistant can list the plugins and run their actions. It cannot include a plugin. See MCP reference.

Clone this wiki locally