> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deeppcb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Via Definition with Cooper

> Ask Cooper to create a via definition and assign it to a net class in one step.

A via definition is a named via geometry — pad and hole size, and the layers it spans. Cooper can create one and assign it to a net class in the same step, which is usually quicker than building it by hand in [Board Setup](https://docs.deeppcb.com/guides/board-setup.md).

## Ask for It

Tell Cooper the net class, the pad and hole size, and the layers the via should span — for example, *Create a via definition for the SPI net class: 0.6 mm pad, 0.3 mm hole, through all layers*. Cooper creates the definition and assigns it as that class's via, replacing the one it had, and says what it changed.

If you leave out the size or the layers, Cooper asks for them before it creates anything.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/X7Hy0HgSSYrG7K_B/images/how-to/cooper-via-def.mp4?fit=max&auto=format&n=X7Hy0HgSSYrG7K_B&q=85&s=fb9c979083ef8939e69e9247c50cbc5e" />

Asking for a 0.6 mm / 0.3 mm via for the SPI net class — Cooper creates it and assigns it to the class.

The change is made as soon as Cooper answers — there is nothing to accept or apply. To check it, open **Setup**, then **Net Classes**: the class's **Via Definition** column shows the new via, for example **Via\[0-3-600-300]** for a 0.6 mm pad and 0.3 mm hole across layers 0 to 3.

For the geometry itself, and for creating one yourself, see [Via Definitions](https://docs.deeppcb.com/tutorials/how-to/via-definitions.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.