# GH_BakeUtility class

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_BakeUtility
```

A utility class for baking. We heavily recommend you use this for any baking, as it handles invalid objects correctly.

## Constructors

- [GH_BakeUtility](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-bakeutility/ctor.md): Create a new baker.

## Properties

- [BakedCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-bakeutility/bakedcount.md): Gets the number of successful baking operations.
- [BakedIds](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-bakeutility/bakedids.md): Gets all collected object ids.
- [InvalidCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-bakeutility/invalidcount.md): Gets the number of invalid objects encountered.

## Methods

- [BakeObject](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-bakeutility/bakeobject.md): Try and bake a single object.
- [BakeObjects](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-bakeutility/bakeobjects.md): Bake a bunch of objects.
