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 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.
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
AutoCAD › Baking · Introduced v1.0.0, updated v1.0.17
Bakes Grasshopper objects (curves, points, meshes, and solids) into AutoCAD's model space and returns the ObjectIds of what it created. Set the Bake input to true to run; while it is false the node does nothing, so you can wire a button or toggle to control 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
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)
BakeBooleanA boolean when true the Objects will be baked to AutoCAD
Outputs
ObjectIdsAutoCAD ObjectIdThe ObjectIds of the baked objects
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. |