Baking

So far everything has been a live preview. Baking commits Grasshopper geometry into the AutoCAD drawing as permanent entities. Let's do it with a minimal worked example.

This example covers raw geometry only. Geometry such as curves, surfaces, and solids exists in both Rhino and AutoCAD, so it can be modelled in Grasshopper and baked straight across. Some objects, however, are AutoCAD-only typesBlocks, Layers, Line Types, and Layouts have no direct Rhino equivalent and are handled with dedicated components rather than this geometry-bake flow. Those are introduced in AutoCAD-Native Types.


Build the definition

  1. Open Grasshopper (GRASSHOPPER) and create a simple piece of geometry — for example, a Circle (as in Grasshopper) or a Box.
  2. From the AutoCAD tab, place the Bake to AutoCAD component (abbreviated AC-Bake, found under AutoCAD ▸ Baking) onto the canvas.

The component has the following inputs and output. You don't need to memorise them — hover your mouse over the component (or over an individual input/output node) on the canvas and Grasshopper shows the same information in a tooltip:

PortNameRequired?Purpose
InputDocument (Doc)OptionalTarget AutoCAD document. If omitted, the active document is used.
InputObjects (O)RequiredThe geometry to bake — curves, points, meshes, and solids.
InputSettings (S)OptionalBake settings — layer, linetype, and colour to apply to the baked entities.
InputBakeRequiredA boolean. When true, the objects are baked to AutoCAD.
OutputObjectIds (Ids)The AutoCAD ObjectIds of the entities that were created.
  1. Wire your geometry into the Objects input.
  2. Leave Document and Settings empty for now — the bake will target the active drawing and use default layer/colour. (You can revisit Settings later to bake onto a specific layer or colour.)
  1. Add a Button and wire it into the Bake input.

The Bake to AutoCAD component wired into a definition A Circle wired into the Bake to AutoCAD (AC-Bake) component, with a Button on the Bake input.

Bake it

  1. Press the Button. While pressed it sends true to the Bake input, which triggers the bake.
  2. The geometry is written into AutoCAD's model space as real entities, and the component's ObjectIds output reports the IDs of what was created.

Baked geometry remaining in AutoCAD with the preview off With the Grasshopper preview off, the baked entities persist in the AutoCAD drawing.

  1. Select the baked geometry in AutoCAD. Unlike the preview, it's selectable, lives on a layer, and will be saved with the .dwg.

Baking creates new entities each time. Every press of the Button bakes again, producing another set of entities. Press it once per bake — don't hold or repeatedly click it — so you don't create duplicates while editing the definition.

Seeing double

Let's prove that warning to ourselves — it's the most important thing to understand about baking.

  1. Press the Button again. Look in AutoCAD: there are now two circles sitting directly on top of each other. The first bake didn't update — the second press created a brand-new circle alongside it. Baking always adds; it never replaces what you baked before.
  2. Delete the baked circles in AutoCAD. Select all the circles you've created and erase them, so you're starting from a clean drawing.
  3. Swap the Button for a Boolean Toggle. Delete the Button and wire a Boolean Toggle into the Bake input instead.
  4. Set the Toggle to true. This bakes once, as before.
  5. Now drag the radius slider. Watch AutoCAD: because the Toggle is held at true, every time you change the slider Grasshopper recomputes and bakes again. As you move the slider you leave behind a trail of circles, each at a different radius.
  6. Set the Toggle back to false to stop baking.

Multiple baked circles of different radii left behind by a held-true toggle A held-true toggle bakes on every recompute, scattering a circle at each radius the slider passed through.