Repository navigation
Units
A unit is a part of a model that you can click and change, for example the shelf of a wall shelf or one bay of a rack. The model says which values of the unit can change. CgeoCAD shows them in the Unit card.
- Open a model with units, for example Marked parts (File > Examples).
- Click a part of the unit in the 3D view, or a row in the Parts list.
- The Unit card opens in the Model tab, with the values of the unit.
- Change a value. A number has a slider, a choice has a list, and a switch is on or off.
A moment after the change, the model builds again.
CgeoCAD writes the values into the model definition, the file <model>.yml next to the model. The .scad file of the model does not change. It keeps its own values as the defaults.
Defaults in the Unit card removes the values of the unit from the .yml file. The model then uses its defaults again.
The Checks card of the Parts list shows a note when CgeoCAD does not use a value:
- The
.ymlfile has a value for a unit that the model does not have any more. The value stays in the file. - A value has the wrong type, for example a text for a number.
- A value is out of the limits of the unit.
When two units of a model have the same id, the Checks card shows a warning.
An AI assistant can read the units with get_units and change a value with set_unit. See MCP reference.
Home · Glossary · Problems and answers · Download · Website
The source of these pages is the docs/wiki/ folder of the repository. Changes that you make on the wiki website are lost at the next update.
Start
Look at the model
Furniture
Projects
More
Advanced