Baking

Components for bundling bake settings and committing Grasshopper geometry into AutoCAD's model space.


AC-BkSetBaking

AutoCAD Bake Settings

AutoCAD Bake Settings icon

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

LayerAutoCAD Layeroptional

The layer to assign to baked objects

LineTypeAutoCAD LineTypeoptional

The line type to assign to baked objects

ColorAutoCAD Colouroptional

The color to assign to baked objects

Outputs

The bake settings

See also

Bake to AutoCAD, Tracked Bake to AutoCAD



AC-BakeBaking

Bake to AutoCAD

Bake to AutoCAD icon

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.

Inputs

DocumentAutoCAD Documentoptional

The AutoCAD document to bake to. If not provided, the active document will be used.

ObjectsGeneric

The objects to bake to AutoCAD (curves, points, meshes, solids)

SettingsBake Settingsoptional

Optional bake settings (layer, linetype, color)

BakeBooleanoptional

A 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

The 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 Bake input 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 Bake input 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

LevelMessageCause & fix
ErrorNo active AutoCAD document availableNo document was supplied and there is no active drawing. Open a drawing or connect a document.
ErrorNo bakeable objects providedNone of the supplied objects could be converted to AutoCAD geometry. Feed in supported curves, points, meshes, or solids.
WarningObject of type {type} is not bakeableAn input object is not a supported geometry type for baking. Remove or convert it; the remaining objects still bake.
WarningFailed 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



AC-TBakeBaking

Tracked Bake to AutoCAD

Tracked Bake to AutoCAD icon

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

DocumentAutoCAD Documentoptional

The AutoCAD document to bake to. If not provided, the active document will be used.

ObjectsGeneric

The objects to bake to AutoCAD (curves, points, meshes, solids)

SettingsBake Settingsoptional

Optional bake settings (layer, linetype, color)

Outputs

The 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

LevelMessageCause & fix
ErrorNo active AutoCAD document availableNo document was supplied and there is no active drawing. Open a drawing or connect a document.
ErrorNo bakeable objects providedNone of the supplied objects could be converted to AutoCAD geometry. Feed in supported curves, points, meshes, or solids.
WarningObject of type {type} is not bakeableAn input object is not a supported geometry type for baking. Remove or convert it; the remaining objects still bake.
WarningFailed 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