# Graphics3DExtensionMethods.Draw3DGrid examples

Examples for [Draw3DGrid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphics3dextensionmethods/draw3dgrid.md) in Grasshopper2.Extensions.Graphics3DExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
graphics.Draw3DGrid(colour, width, lineCount, span, transform);

// As a static method
Graphics3DExtensionMethods.Draw3DGrid(graphics, colour, width, lineCount, span, transform);
```

## Python

```python
import clr
clr.AddReference('Grasshopper2')
import Grasshopper2.Extensions
clr.ImportExtensions(Grasshopper2.Extensions)

# As an extension method
graphics.Draw3DGrid(colour, width, line_count, span, transform)

# As a static method
Grasshopper2.Extensions.Graphics3DExtensionMethods.Draw3DGrid(graphics, colour, width, line_count, span, transform)
```
