Repository navigation
Releases
Releases · aaronsb/freecad-cli
FreeCAD CLI 0.2.0
The command language stops being hand-written.
Added
- Verb factory.
tools/generate_descriptor.pyharvests FreeCAD's
command registry and type registry and writesfccli/descriptor.json.
At startup the factory turns that into ~1200 verbs across three tiers:
every registered command as a launcher, every parametric type as a
parameterized verb with steps, units and enum choices, and patched verbs
on top. - Patch layer, keyed by namespace and composed from three roots — this
repo, an addon's ownfccli_patch.py, and the user's directory. An addon
needs no registration to be supported. - Shell builtins:
saveopennewclosequitclearundo
redofitdeletemanhistoryaliasunalias. Each takes its
arguments inline so FreeCAD's modal dialogs stay closed. A trailing!
forces past a refusal. man, withhelpas an alias. Bare it lists; with a topic it renders
the full page, generated from FreeCAD's own property documentation.- Dirty tracking via
App.addDocumentObserver, so unsaved-changes state
is accurate for edits made anywhere, not just on the command line. - Full/partial width toggle and a persisted dock height.
Changed
- The dock's home is the top area: a full-width strip between the toolbars
and the 3D view. - Default picking backend is
snap— Coin3D events resolved through
Gui.Snapper.snap(). Snapping without Draft's Point dialog. - A command echoes as one accumulating line, with values canonicalized on
input:3/8inbecomes9.525mm. - History records the assembled command rather than each typed fragment, so
a mouse-driven polyline comes back from Up as editable text. - A verb whose remaining steps are all optional runs on Enter.
Fixed
package.xmldeclaring<content><other>stopped FreeCAD from running
Init.pyandInitGui.pyat all, silently.- A class defined in
InitGui.pyis gone by the time a deferred callback
runs, soGui.addCommandfailed with name is not defined. - Draft's grid rendered as stray lines across the model when the user's
gridSpacingpreference is0. - Verb name collisions silently dropped 15 types —
PartDesign::Boxwas
overwritingPart::Box. Registry.reindex, so a removed alias stops resolving.