CAM Training - Make a Pegboard

Using Toolpath Patterns in Fusion

In your projects, you will often need to machine the same part several times or repeat the same operation, for example to produce an object in series. You can duplicate the toolpaths or the objects to be made, but it is tedious: you have to select them one by one in the Geometry tab, and every part you add or remove has to be updated by hand.

Fusion therefore lets you create toolpath patterns (Pattern), so you can duplicate them at will without reselecting the geometry. To illustrate this tool, we will create an IKEA-compatible pegboard.

If you are only looking for information about the Pattern tool, you can skip straight to the chapter Manufacturing: Last Operation, Pattern.

Prerequisites: knowing how to prepare simple machining operations in Fusion (see Module 1).

Modeling: Defining the Parameters

Here is the sketch we are going to draw: the outline of the pegboard and a single slot. The other slots will be obtained by duplicating the toolpath.

Capture D'écran 2025 08 11 164010

Start by defining the parameters. The size of the pegboard will depend on the number of slots you want.

Open Modify > Change Parameters.

First create two parameters for the number of slots in X and Y. These parameters have no unit: choose No Units in the Unit field.

  • nbrSlotX = 17
  • nbrSlotY = 25

Then create a parameter for the thickness of the part:

  • thickness = 5 mm

The distance between the slots:

  • distanceBTSlots = 20 mm

Then the length and width of the slots:

  • slotLength = 15 mm
  • slotWidth = 5 mm

The number of slots determines the width and height of the panel. A formula ensures that the dimensions stay correct, whatever the number of slots.

  • Multiply the number of slots by the distance between them:
    (nbrSlotX * distanceBTSlots)
  • With this formula alone, the last slot would fall in the middle of the right edge.

tooMuchPegging

  • To avoid this, add distanceBTSlots to the formula:
    width = (nbrSlotX * distanceBTSlots) + distanceBTSlots
    height = (nbrSlotY * distanceBTSlots) + distanceBTSlots
    Note: the brackets set the order of calculation.

The parameters are now defined. Here is the summary:

Name Unit Expression Value
nbrSlotX No Units 17 17
nbrSlotY No Units 25 25
thickness mm 5 mm 5
slotLength mm 15 mm 15
slotWidth mm 5 mm 5
distanceBTSlots mm 20 mm 20
width mm (nbrSlotX * distanceBTSlots) + distanceBTSlots 360
height mm (nbrSlotY * distanceBTSlots) + distanceBTSlots 520

parameters

Modeling: Drawing the Pegboard

Click Create > Create Sketch and select the X/Y plane. In the sketch, select Create > Rectangle > Center Rectangle. Place the center point at the origin of the document and enter the width and height dimensions. Press Enter to confirm the drawing.

canvasFinal

Then select Create > Slot > Overall Slot.
First enter the slotLength value, keeping the orientation at 90°:

slotLenght

Confirm with Enter, then, moving the mouse slightly, enter the slotWidth value:

slotWidth

Confirm with Enter:

finalSlot

Now place a point at the center of the construction line created with the slot (slot). This point will be the reference for the sketch dimensions. Select Create > Point:

pointSelection

Place the point at the middle of the dotted construction line, in the center of the slot. Check that the Midpoint constraint appears in blue.

slotMiddleConstraint

Now fix the position of the slot relative to two edges of the rectangle. Select Create > Sketch Dimension:

sketchDimensionMenu

Two dimensions are needed: the distance between the center point of the slot and the bottom side of the rectangle, then the distance between the center of the slot and the left side of the rectangle.

With the Sketch Dimension tool active, click the center point, then the bottom side of the rectangle:

clicOnthemiddleandBottomLine

Place the dimension wherever you like and enter the distanceBTSlots parameter.

distanceBTSlotVertical

Do the same between the construction line of the slot and the left side of the rectangle, again entering distanceBTSlots:

selectLeftLineAndCenterPoint

The screenshots show fillets at the four corners of the rectangle. Use Modify > Fillet and create fillets with an 8 mm radius by clicking the two lines of each corner.

filet

The drawing is finished: click Finish Sketch:

finalCanvas3

There is no need to draw the other slots: it is the toolpath that will be duplicated. You can move to the Manufacture workspace.

Manufacturing: Creating the Setup

Start by creating the Setup (Setup > New Setup).

We have only drawn a sketch, with no solid body, so no model is selected in the Setup. This is normal: the toolpaths are based directly on the sketch. If Fusion displays the “No model selected” warning when you confirm, click Yes.

Go straight to the Stock tab in the left panel and enter these values:

  • Stock Side Offset: 0 mm
  • Stock Top Offset: thickness

The settings should match the image.

stockSideThickness

Go back to the Setup tab. In Box point, select the bottom left point of the stock, as shown in the image.

WCSSelection

Click OK to confirm the Setup.

Manufacturing: First Operation, 2D Contour of the Slot

First create the toolpath for the slot: 2D > 2D Contour. If you have a 5 mm diameter end mill, you can also use the 2D > Slot operation.

Here we use a 3 mm diameter end mill, the A303.030.6D from Fraiser. It is a 2-flute end mill with downward chip evacuation (Downcut), suited to cutting thin panels like this one. Here are the speeds:

Capture D'écran 2025 08 13 163222

In the Geometry tab, select the slot contour. Check that the arrow is inside the outline.

PegSelection2DContourInside

In the Passes tab, check Multiple Depths and enter the depth of cut in Maximum Roughing Stepdown. With a good-quality end mill on a Mekanika Pro, we can afford 3 mm passes. If you are unsure, use half the end mill diameter, here 1.5 mm.

multipleDepth

Finally, in the Linking tab, check Ramp and enter these values if you have not saved them as defaults (as a reminder: click the three small dots to the right of the field, then Save as User Default).

Ramping Angle: 35 deg
Maximum Ramp Stepdown: 300 mm
Ramp Clearance Height: 2.5 mm

ramp

You can then confirm the toolpath.

Manufacturing: Second Operation, Outer 2D Contour

Why two separate toolpaths? In theory, everything could be done in a single operation. But the goal is to duplicate the slot toolpath, not the one that cuts out the panel, which is only done once, at the end.

Click 2D > 2D Contour; the end mill should already be selected. In the Geometry tab, click the outer contour:

selectContourClosedChain

Warning: in the example above, the arrow is inside the outline, which means the end mill will machine on the inside. We want to machine on the outside: simply click the arrow to flip it.

contourSelectionOutside

Do not forget the Tabs:

Fusion Tabs

For the rest, use the same settings as the previous operation in the Passes and Linking tabs.
Confirm by clicking OK:

canvasToolpath

Manufacturing: Last Operation, Pattern

Now create a pattern from the first operation. Right-click the 2D Contour 1 operation, then select Add to New Pattern.

addnewpattern

Here are the options in the right-hand panel:

Direction1Selection

In the Pattern section:
Pattern Type: the type of pattern. Several types exist; leave it on Linear.

Distance Type: how the distance between elements is calculated. Spacing sets the distance between two elements; Extent sets the total length of the pattern, and Fusion then calculates the spacing.

Direction 1: the direction of the pattern, chosen by clicking an axis or an edge in the design.

Flip Direction 1: reverses the direction of the pattern if needed.

Quantity: the number of elements, including the original toolpath.

Distance: the distance between two elements, or the total length, depending on the type selected.

Direction Type: the pattern goes in one direction, or in two symmetrical directions.

Additional Direction: adds a second direction.

Keep Original: keeps or removes the original element.

For our pattern:
Pattern Type: Linear
Distance Type: Spacing

Direction 1: show the axes and planes by enabling the Origin folder in the Browser, then select the X axis:

patternDirection1X

Flip Direction 1: check that the pattern goes in the right direction and check the option if it does not.

2Patterns

Quantity: enter the nbrSlotX parameter.

resultDirection1

Distance: enter the distanceBTSlots parameter.

Direction1DistanceBTSlots

Add a second direction (Additional Direction):
this time select the Y axis.
Quantity: nbrSlotY
Distance: distanceBTSlots

If all goes well, you get this grid of toolpaths.

finalPegboard

All that remains is to select Setup1 and click Post Process to generate the G-code (see Module 1 for details).

There you go! If you change the parameters, in particular the number of slots, the outer contour adapts automatically. You then just need to regenerate the toolpaths: right-click Setup1 and select Generate.

About Mekanika

Mekanika is a Belgian company based in Brussels whose ambition is to make local production more accessible thanks to a 100% open-source approach.

We design and produce high quality machines for CNC milling and screen printing, which have been recognized for their reliability and ease of use. Our tools are delivered as kits and fully documented, allowing to easily adapt them to specific needs.

Visit our shop to find out more, or check out our online resources and tutorials to continue learning.

Related Articles

Module 1: 2D Modeling and Milling
Module 1: 2D Modeling and Milling

Learn the basics of Autodesk Fusion: the interface, the design of a parametric clamp and the preparation of its CNC machining.

Xavier Klein

Xavier Klein

CNC Educator

Module 2: 3D Modeling and Milling
Module 2: 3D Modeling and Milling

Learn how to model a parametric ashtray and prepare its 3D machining in Autodesk Fusion, from roughing to finishing.

Xavier Klein

Xavier Klein

CNC Educator