# Cognex.Designer.ExampleBlocks

The ExampleBlocks sample plugin provides templates for creating custom Cognex Designer Task Blocks. The plugin includes the following Block Examples:

## Multiplier Block

Provides a simple example of processing an Input value:

## StyledBlock

Provides an example of modifying the look of a custom Block:

## Dynamic I/O Block

Provides an example of dynamically changing the number and type of input/output pins on a Block

## Camera Configurator Block

Provides an example of modifying Device properties:

Use the example Blocks as follows:

1. Copy the Cognex.Designer.ExampleBlocks folder to the directory you are developing in.
2. Open Visual Studio as an Administrator.
3. Open the Cognex.Designer.ExampleBlocks solution in Visual Studio.

4. Develop and build your plugin.

   Tip: Use the MultiplierBlock.cs resource as a starting point to build more complex blocks for your plugin.

Cognex Designer makes the built plugin available at the following location:

%ProgramData%\Cognex\Designer\Plugins\Samples\Cognex.Designer.ExampleBlocks

The plugin should consist of the following files: