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 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

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



AC-BakeBaking

Bake to AutoCAD

Bake to AutoCAD icon

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

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)

BakeBoolean

A boolean when true the Objects will be baked to AutoCAD

Outputs

The ObjectIds of the baked objects

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