Summary
Three tools instead of fifty, because the model writes the code.
Rather than wrapping every Civil 3D operation as its own tool, it exposes a Roslyn engine and a library of documented C# templates. The model reads a template, adapts it and sends it — read-only through the query call, committed through the execute one.
What it is
A code-execution bridge into Autodesk Civil 3D. The server speaks stdio to your client and TCP to a plugin inside Civil 3D, which compiles and runs C# with full API access and returns JSON.
What you get
- civil3d_query — runs C# read-only, with no transaction committed and no side effects on the drawing
- civil3d_execute — runs C# with write access and commits the transaction, modifying the drawing
- civil3d_skills — browses, searches and reads the skill library: documented C# templates for surfaces, alignments and station/offset, COGO points, geometry, drawing information and multi-object workflows
- Executed code receives the active AutoCAD document and the Civil document as globals, so it works against whatever is open
Requirements
Autodesk Civil 3D with the accompanying plugin loaded and listening on its local TCP port, and a drawing open for the code to act on.
