The codec and kernel repositories and crates are renamed opencadcodec and opencadkernel. Inside OCS they are depended on under short keys, so code reads `codec::`, `kernel::` and the new `graph::` (opencadgraph, the node graph engine). File-format and protocol spellings stay as they were: the ACIS product id `acadrust`, the ACADRUST_* switches and the plugin version keys `acadrust_version` / `acadrust_source`. A button left of MCP on the command line opens a translucent node graph over the viewport, with a palette of object, input, math, logic, list, text and geometry nodes added by click or drag. An object node owns drawing entities and its rows are the Properties panel's own rows for them: the single-object page is extracted from refresh_properties as entity_property_sections, values use the control protocol's property_json, and writes go through set_property_value with a property target override, so the panel, MCP and the graph share one read/write path. A list reaching an object row makes one entity per element. Each graph action is one undo step; the canvas pans and zooms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Open CAD Studio plugin template
A complete scaffold for an external Open CAD Studio add-on. A plugin is its
own repository that builds a cdylib; the host loads it at runtime. Copy this
folder into a new repo and rename the placeholders.
Files
| File | Purpose |
|---|---|
Cargo.toml |
cdylib crate depending on ocs_plugin_api (host feature) |
src/lib.rs |
manifest + CadModule ribbon + BuiltinPlugin + export_plugin! |
plugin.toml |
metadata read by the host (mirrors the manifest) |
.github/workflows/release.yml |
cross-builds the cdylib and publishes a release |
PLUGIN.md |
your command reference + XDATA schemas |
Quick start
- Copy this folder into a new repository.
- Rename
my-plugin/My Plugin/opencad.my_plugin/my_plugin/MP_throughout (Cargo.toml,src/lib.rs,plugin.toml, the workflowasset:names), keepingplugin.tomland theMANIFESTin sync. cargo buildto check it compiles.
Test locally
cargo build --release
mkdir -p "<config>/OpenCADStudio/plugins/opencad.my_plugin"
cp target/release/*my_plugin*.so "<config>/OpenCADStudio/plugins/opencad.my_plugin/"
sed "s|__RUSTC_VERSION__|$(rustc --version)|" plugin.toml > \
"<config>/OpenCADStudio/plugins/opencad.my_plugin/plugin.toml"
Restart Open CAD Studio: the ribbon tab appears and MP_ commands route to your
plugin. (<config> = %APPDATA% / ~/Library/Application Support /
$XDG_CONFIG_HOME.)
Publish
Push a v* tag — the workflow builds the cdylib on Linux/Windows/macOS and
uploads each binary plus plugin.toml to a GitHub Release. Users install it from
the Plugin Manager by linking your owner/repo, or — once your repo is added
to plugins/registry.json
via PR — straight from Available plugins.
The binary must be built with the same toolchain and
ocs_plugin_apiversion as the host (approach B). Seedocs/plugin-architecture.md.