Baking
Components for bundling bake settings and committing Grasshopper geometry into AutoCAD's model space.
AutoCAD Bake Settings
AutoCAD › Baking · Introduced v1.0.0
Bundles a layer, line type, and colour into a single bake-settings package that controls how objects are styled when they are baked into AutoCAD. Feed the output into the Settings input of the Bake to AutoCAD or Tracked Bake to AutoCAD node so newly created objects pick up your chosen appearance. Every input is optional, so you can set only the properties you care about and leave the rest at AutoCAD's defaults. Settings apply to all supported geometry, including Breps — before v1.3.0 they were silently ignored for Breps.
Inputs
The layer to assign to baked objects
The line type to assign to baked objects
The color to assign to baked objects
Outputs
SettingsBake SettingsThe bake settings
See also
Bake to AutoCAD, Tracked Bake to AutoCAD
Bake to AutoCAD
AutoCAD › Baking · Introduced v1.0.0, updated v1.3.0
Bakes Grasshopper objects (curves, points, meshes, and solids) into AutoCAD's model space and returns the ObjectIds of what it created. Press the Bake button on the component to run it; nothing is baked until you do, so you decide exactly when objects are committed to the drawing. Supply optional bake settings to control the layer, line type, and colour of the new objects, and an optional document to bake into a drawing other than the active one. Each input object that cannot be turned into AutoCAD geometry is skipped with a warning.
Faster Brep baking (v1.3.0). All the Breps in a bake are now batched into a single export/import round-trip instead of one per Brep, which is significantly quicker. Their ObjectIds are now returned as well, and AutoCAD Bake Settings now apply to them — both were previously missing.
Inputs
The AutoCAD document to bake to. If not provided, the active document will be used.
ObjectsGenericThe objects to bake to AutoCAD (curves, points, meshes, solids)
Optional bake settings (layer, linetype, color)
BakeBooleanoptionalA boolean; when true the Objects are baked to AutoCAD. Present only while Driven Button is turned off — with the toggle on, the Bake button takes its place.
Outputs
ObjectIdsAutoCAD ObjectIdThe ObjectIds of the baked objects
Menu & behaviour
- The Bake button is drawn on the component and runs the bake on demand. It acts as a data dam: the bake runs only on the solve the button triggered, so an upstream input change never bakes by itself.
- Right-click Driven Button (on by default) — shows the Bake button. Turn it off to replace the button with a
Bakeinput that bakes when it is true. The button and the input are alternatives; you never get both. The setting is remembered when the Grasshopper file is saved and reopened. - Definitions saved before v1.3.0 are not broken. On opening, a wired
Bakeinput wins and is kept, so no wire is ever silently removed; an unwired one is dropped in favour of the button. Toggling Driven Button records an undo event, because hiding the input removes it along with any wire attached to it, and does not itself trigger a recompute.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No active AutoCAD document available | No document was supplied and there is no active drawing. Open a drawing or connect a document. |
| Error | No bakeable objects provided | None of the supplied objects could be converted to AutoCAD geometry. Feed in supported curves, points, meshes, or solids. |
| Warning | Object of type {type} is not bakeable | An input object is not a supported geometry type for baking. Remove or convert it; the remaining objects still bake. |
| Warning | Failed to bake object: {error} | An object could not be written to the drawing. Check the reported reason; other objects continue to bake. |
See also
AutoCAD Bake Settings, Tracked Bake to AutoCAD
Tracked Bake to AutoCAD
AutoCAD › Baking · Introduced v1.3.0
Bakes Grasshopper objects (curves, points, meshes, and solids) into AutoCAD's model space and keeps a connection to the objects it created. Unlike Bake to AutoCAD there is no trigger: it bakes whenever its inputs change, and removes the objects from the previous bake before creating the new ones. Editing your definition therefore updates the drawing in place instead of leaving a trail of duplicates behind. Use this node when the baked geometry is an output of the definition that should stay in step with it, and use Bake to AutoCAD when you want to commit geometry deliberately, at a moment you choose, and leave it alone afterwards.
Inputs
The AutoCAD document to bake to. If not provided, the active document will be used.
ObjectsGenericThe objects to bake to AutoCAD (curves, points, meshes, solids)
Optional bake settings (layer, linetype, color)
Outputs
ObjectIdsAutoCAD ObjectIdThe ObjectIds of the baked objects
Menu & behaviour
- The component capsule renders black while it is tracking objects, and its message reads "Tracking 1 Object" or "Tracking 40 Objects". It returns to its normal appearance as soon as it tracks nothing.
- Right-click Replace Previous Object (on by default) — deletes the objects this node previously baked before baking again, so editing inputs updates the drawing in place instead of leaving duplicates behind.
- Right-click Save Connection Between Sessions (on by default) — remembers the link to baked objects when the Grasshopper file is saved and reopened.
- Right-click Forget Connections — forgets the tracked objects without deleting them from the drawing.
- Right-click Delete Connected Objects — permanently erases the tracked objects from the drawing. A confirmation prompt appears first.
- Skips re-baking when inputs are unchanged, and defers one solve after a Rhino undo/redo.
- Breps are converted asynchronously. The node waits for those conversions to finish before it will bake again, so a re-solve part-way through cannot produce duplicates.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No active AutoCAD document available | No document was supplied and there is no active drawing. Open a drawing or connect a document. |
| Error | No bakeable objects provided | None of the supplied objects could be converted to AutoCAD geometry. Feed in supported curves, points, meshes, or solids. |
| Warning | Object of type {type} is not bakeable | An input object is not a supported geometry type for baking. Remove or convert it; the remaining objects still bake. |
| Warning | Failed to bake object: {error} | An object could not be written to the drawing. Check the reported reason; other objects continue to bake. |
See also
Bake to AutoCAD, AutoCAD Bake Settings, Create AutoCAD Block Reference