Early alpha · 0.1.0-alpha
PocketCarve turns a 2D drawing or grayscale relief into a machining plan. This guide follows a small recessed plate from its sketch on the stock to the first line of its exported G-code. The same drawing can supply several operations. A rectangle, for example, becomes a recess when you pocket its interior or a groove when you contour its edge.
Start with Draw and preview your first pocket if this is your first session. Use the remaining chapters to look up a tool or diagnose a result. The downloadable PDF includes every chapter and screenshot for use at the machine without internet access.
Draw and preview your first pocket
The illustrated plate starts with 128 × 78 mm stock. Its central recess is a 60 × 32 mm rectangle. You can preview this first operation with just the rectangle, then add the outside profile and holes later.
- Open New Project. In Setup → Stock, enter the width and height before adding operations. Pick the work Origin that you want to see in the exported program.
- Turn on Drawing mode with the pencil. Choose Rectangle and place opposite corners inside the stock. For an exact size, enter width and height in the sketch input as you draw, or set the widths of the finished edges with Dimensions. Finish the tool, then turn Drawing mode off. Your outline stays on the stock.
- In Operations, choose complete the initial tool setup first. Enter the cutter dimensions, feeds, heights and spindle speed for your setup, then Save.
- Use Select to pick the rectangle on the stock. Choose Pocket, set a positive End depth greater than Start depth, and pick a Stepdown and Stepover for your setup. Name the operation Recess and choose Create Operation.
- Choose Generate and view/edit G-code. Select a numbered line or press Play. Look for passes filling the rectangle and for the transitions between cuts. Save the editable drawing with Save Project.

Stock, work origin and safe zones
Stock describes the material footprint. Enter width and height in millimetres. Use the flip control to exchange them. Origin picks the corner, edge midpoint or centre that represents work X0 Y0. Set this before planning cuts. Confirming a new origin clears the operations and keeps the drawing in place. Changing stock size after creating cuts also requires rebuilding those cuts.
For the 128 × 78 mm example, the stock centre reads X64, Y−39 relative to a top-left zero and X0, Y0 relative to a centre zero. Both describe the same point on the plate. Match this choice when you set the work zero on the machine.
Surface Z in Tool Setup is the height of the stock surface in work coordinates. An operation's depth is measured down from that height. For example, Surface Z of 0 mm and an End depth of 2 mm give a final programmed Z of −2 mm. Safe Z is a work-coordinate height for clearance moves. Check it against the stock and your actual fixtures.
Reserve room for a clamp
- Draw a closed outline around the fixture footprint and select it on the stock.
- In Setup → Safe Zones, choose Add. PocketCarve uses the outline’s rectangular bounds for the zone.
- Generate the preview. PocketCarve routes rapid moves around zones and checks cutting moves using the cutter footprint. If generation reports a conflict, inspect the zone and the selected cut before exporting.
Project files, imports and the Browser
Save Project writes an editable .pocketcarve project. Use Open Project → Open… or Open Recent to return to it. Keep the project when you export a DXF or an NC program. The project is where you can change the dimensions, tool setup and operation order.
| What you have | What to do |
|---|---|
| A DXF or SVG drawing | Use the vector import in Browser. For SVG, set the physical width and height in the import dialog. Check a known dimension after placing it. |
A PaliCAD .pali project |
Use the same vector import. Each sketch with cuttable geometry becomes a separate Browser item. The import extracts DXF-style geometry. The 3D bodies and PaliCAD parameter and constraint graph stay in the source file. |
| A grayscale PNG or TIFF | Use the image import in Browser, choose Import as Heightmap, then set pixels/mm or one physical dimension. PocketCarve keeps the aspect ratio. |
| A two-colour black-and-white image | Choose Convert to Vectors to trace outlines, or import it as a height map if the two colours represent two depths. |
Drag an item from the Browser onto the stock to place it. Selecting a Browser row selects the source item. Selecting its placed geometry on the canvas is what makes it available to a cut. The Browser row’s edit control lets you edit a vector source sketch. To export the drawing for another application, use Export canvas geometry as DXF in the Browser header.
Files for different stages
A .pali file brings in sketch outlines. A .pocketcarve file lets you resume a machining plan. A .nc file is the generated program for a controller. If an exported program needs a different tool diameter or depth, edit the project and regenerate it.
Save a working copy
Use Save Project early so the file has a name and a known destination. General also offers Autosave project and its interval. Autosave writes to the current project path when one is available. Before the first save, it writes pocketcarve_autosave.pocketcarve in the system temporary directory. Save a named project for a copy you can reliably find in Open Recent. Keep a separate project copy before changing your stock or substantially revising a machining plan.
Drawing on the stock
Toggle Drawing mode to sketch on the current stock. Geometry stays in the same position as you switch between drawing and machining. Use the bottom toolbar to draw and the top toolbar to select or transform. A tool’s panel opens above Operations.
- Line, Spline and Arc share a tool family. Use straight segments for a profile, a spline for a smooth freeform edge, or an arc for a circular segment. Right-click or long-press a family icon to see its variants.
- Rectangle includes opposite-corner, centre and three-point placement. Use a centre rectangle for a recess centred on a known point. Circle tools include centre/diameter and two-point circles and a three-point ellipse. Polygon modes let you place regular sides around a centre or orient the polygon from picked points.
- Fillet rounds a corner and Chamfer bevels it. Slice splits geometry. Expand / Contract creates an offset outline. Check the side of the offset in the preview before applying it.
- Copy Operations offers sketch Mirror and Pattern. Use a pattern for repeat features with consistent spacing. Text places lettering. Heal helps locate and repair sketch geometry when an outline fails to close.

Selections, dimensions and parameters
Select edges or points to give a tool its inputs. Clear Selection releases the picks. Delete acts on the current selection. To move a construction guide, select its line and open Move. Drag it from its middle or by an arrow, or enter X and Y offsets and choose Apply. Select both the guide and a cut line if they should move together. Construction geometry stays out of the toolpath.
Open Constraints and choose a relationship. Pick endpoints for Coincident, two edges for Parallel or Perpendicular, or circles for Concentric. Horizontal, Vertical, Tangent, Equal, Midpoint, Symmetry, Collinear and Fix / unfix address other relationships. If a new relation conflicts, inspect existing dimensions and fixed points before adding more.
Dimensions can specify length, horizontal or vertical distance, angle, radius or diameter. A driving dimension controls geometry. A reference dimension reports the result. To lay out the two holes, locate their centres with construction geometry and dimension the circles independently of their spacing. Use Hide sketch dimensions to see the profile clearly while keeping its dimensions available.

In Parameters, choose Add parameter, enter a name and a value or expression, and Save. For a 60 mm recess with a 6 mm margin at each end, a length parameter named pocket_width can be used in pocket_width + 12 mm. The Advanced controls offer a slider or rotator with a chosen range. Set the range to dimensions that still fit your part.
Repair, repeat and letter a sketch
Find a gap in a pocket outline
If an imported outline looks closed but Pocket will not accept it, zoom in and open Heal. Choose Analyze to see how many closed regions the sketch contains. Select two or more connected edges of the intended boundary and inspect the repair preview. Apply only if the proposed closure follows the shape you mean to machine. Run Analyze again before you return to Pocket.
Slice is useful when an imported line runs through several shapes. Choose Objects to select what to divide. Switch to Cut line and pick the cutting line or use X axis or Y axis. Check the reported intersections and preview, then apply. After splitting, select the piece you want to keep working on.
Repeat a mounting hole
Draw one circle at the first hole centre. In the bottom Copy Operations family, choose Pattern. Select the circle as the source and choose Linear. Pick a direction and set the count. Spacing is the distance from one position to the next. Extent is the total distance between the first and last positions. Check the preview centres before applying.
Choose Grid for repeated rows in two directions. For holes on a bolt circle, use Circular, pick the pattern centre or choose the origin, and set the count and angular range. To make a single symmetric counterpart, choose sketch Mirror, select the source and a mirror line, and apply.
Turn lettering into cuttable outlines
Choose Text, enter your label and choose a font. Size and Spacing are in millimetres. Use left, centre or right alignment to control which part of the baseline sits at the anchor. Enter X and Y, or choose Reposition and pick a point or edge on the sketch. Set the rotation, inspect the outlines, and apply.
Import font (TTF) accepts a static TrueType font. For a small engraved label, zoom in on a letter with an enclosed hole, such as an O or A. Contour can follow each outline. If you want to pocket the letter face, exclude the enclosed island from the pocket.
Positioning geometry and setting up a cutter
Move accepts offsets and rotation. Align moves the selected bounds to a corner, edge midpoint or centre of the stock. For a single centred recess, select its rectangle and choose the centre target. Scale takes a percentage and offers separate X and Y percentages for non-uniform scaling. Mirror reflects geometry about the selected side. Use Keep original in a canvas transform panel when you want a second copy.
Initial Tool and Tool Change
In the empty Operations panel, follow the initial setup prompt. Give the tool a name you will recognise in the operations list. Enter its Diameter, Spindle Speed, Feed Rate, Plunge Rate, Surface Z and Safe Z. Feeds are in mm/min and spindle speed is in RPM. Choose values for the actual cutter, material and machine. Save creates the Initial Tool row. Use its pencil control to edit the setup later.

Choose Tool Change in Operations when a later cut needs a different cutter or setup. Its position in the list determines which cuts use it. Drag rows to reorder a job and check the cutter assignments again. The Initial Tool row stays first. A manual change requires attention at the machine.
Pocket and Surface
Use Pocket when the cutter should clear the material inside a closed boundary. The plate example uses the inner rectangle. With the rectangle selected, choose Pocket. Set Start depth and End depth, then Stepdown for the depth per layer and Stepover for spacing between adjacent passes. Both are distances in millimetres. Choose Create Operation to add the cut to the list.

Leave an island or face the stock
For a pocket containing a boss, draw its closed outline inside the pocket. In the Pocket panel choose Exclude Geometries, pick the island outline, then Done Selecting Exclusions. Inspect the result in the motion viewer. Climb milling controls the direction of the pocket boundary passes. Full retract on stepdown changes how the cutter moves between depth layers.
Choose Surface to face the entire stock footprint. It uses the stock dimensions directly. Enter the required depth, stepover and stepdown, create the operation and place it before later cuts if those cuts depend on the faced surface.
Cut a contour
Use Contour to follow a selected profile. On Path runs the cutter centre along the drawing, which suits a groove. For a closed outline, Inside Path and Outside Path offset the tool centre to the chosen side. On the example plate, select the clipped-corner outer boundary and choose Outside Path to keep the drawn outside dimension.

Climb milling sets travel direction. On an open, on-path contour it sets the starting direction along the line. On a single closed contour, Enable tabs lets you choose the number, width and height of bridges left along the cut. Review their positions in the preview, especially near corners.
Drill holes and schedule stops
For the two holes, select their circles or point locations and choose Drill. A circle provides a centre location for the plunge. The physical cutter determines the drilled diameter. Set depth and, for a peck cycle, turn on Peck drill and enter the peck distance. Check the retract option in the panel. Use a pocket or an inside contour if the hole should be machined to a larger drawn diameter.

Pause inserts a stop in the sequence. Full Pause waits for operator intervention. Timed Pause takes a duration in seconds. Place the pause at the point in the job where the stop is required.
Decorative Edge and custom profiles
Use Decorative Edge to turn a cross-section into a grayscale image along a path. For example, a rounded profile along the plate perimeter makes a relief that follows all its corners. There are two stages. First create the edge image, then give that image a Height Map machining operation.
- Select exactly one line, arc or closed shape on the stock. Open Decorative Edge.
- Choose Edge Placement. Outside or Inside places the band on that side of a closed outline. On Path centres it on the path. Set Width in millimetres and Pixels/mm for the generated image.
- In the profile editor, use Add Point to introduce a change in slope. Switch to Move and drag the point to shape the cross-section. Choose Line for straight portions or Arc for a rounded transition. Remove Point simplifies the profile. Use Flip X if the shape rises on the opposite side from the one you want.
- Choose Top Color to identify the high side in the image. Choose Create Edge Heightmap. The image is added to the Browser and selected on the stock. Open Height Map to assign depths and a cutting process.

Machine a grayscale height map
A height map assigns a depth between two endpoints to each image tone. Start with a grayscale PNG or TIFF placed at a known physical size, or use the selected image from Create Edge Heightmap. With the image selected on the stock, open Height Map.
- Start Depth and End Depth set the shallow and deep limits. Start Depth Color chooses which end is white and which is black. If a raised rim appears recessed, compare this choice with Top Color in the edge generator.
- Depth sampling changes what a pixel means to the cutter. Use Cutter footprint when the image describes the surface you want to keep. PocketCarve considers the area under the bit. Tool center reads depth at the centre position. A generated edge starts in this mode because its image describes a cutter path.
- Quality selects a sampling density. The available values depend on source resolution and cutter size. Enlarging a small image reduces pixels per millimetre. Higher density adds work during generation.
- Process Type selects rough, fine and ultra-fine passes or combinations. Where roughing is enabled, set Rough stepover and Rough stepdown. Inspect the result before increasing the number of passes.

Choose Create Operation, then generate the motion preview. If a thin band produces no cut with Cutter footprint, compare its physical width with the tool diameter. Check the image scale and transparent areas. Choose Tool center when the image was specifically designed as a centre path.
Inspect, edit and export G-code
The Operations list is the order of the program. Use meaningful names, such as Recess, Mounting holes and Outside profile. Before generating, inspect each row's tool assignment, depth, selected geometry and relation to your safe zones. Open a row with Edit operation. In its preview, purple shows the saved source, teal shows the cutter footprint, and gray shows the current scene. Change the operation settings and save to keep the edit. If you redraw an outline, recreate its cut from the new selection.
Choose Generate and view/edit G-code and read the alpha warning. The viewer puts the numbered program beside a motion view. Select a line to inspect that part of the path. Previous line, Next line, Play and Pause let you follow transitions between cuts. Use the speed control to slow a transition down and Reset View to restore the camera.

You can edit program text in the viewer, insert a line below the selection or delete a line. Set File name and choose Export .nc to save that version. Generate & Export G-code generates directly from the operation list. To keep a change on future regenerations, make it in the operation or tool setup and save the project.
The exporter uses millimetres and absolute positioning. Check the work origin, Z heights, travel limits, cutter and workholding against the physical setup. Follow the app's prompt to verify the exported program in an independent simulator before running it on a machine.
Touch controls and settings
On iPhone, iPad and Android, the sketch offers Shift Lock at the lower right and a numeric keypad for dimensions and offsets. Shift Lock gives a touch gesture the effect of holding Shift. Release it when you want an ordinary selection. Right-click on desktop or long-press a sketch family on a touchscreen to see its variants. On iPad and iPhone, supported tools can park a candidate point for confirmation before committing it.

In Settings → General, use Snap to vertices & curves to pick up existing endpoints, midpoints, centres and intersections. Snap to grid and the grid spacing control the other source of snap points. The gizmo length and Shift rotation increments apply to transform handles. Desktop users can enable Touchscreen mode for the touch controls. On iOS, Draw sketch with touch controls finger placement alongside Pencil input.
Use Theme to choose Light, Dark or System. In Keyboard Shortcuts, find a command and set the binding for your keyboard. Hovering a toolbar command shows its current binding. Undo and Redo step through edits. The history limit is adjustable under General.
When the result looks wrong
| What you see | What to check |
|---|---|
| An operation is unavailable | Complete Initial Tool setup, leave Drawing mode, and select the required geometry on the stock. A Browser row or construction guide alone cannot supply a cut. |
| Pocket will not accept the outline | Select one closed boundary. Inspect the joins in Drawing mode with snapping or Heal. Add closed island outlines via Exclude Geometries. |
| A cut follows the previous outline | Open the operation editor and compare its captured geometry with the current drawing. Recreate the cut from the revised geometry. |
| The job is mirrored or offset from your zero | Check the nine-position work origin and your machine's zero. Positive machine Y points up the drawing. Inspect the program again after changing origin and rebuilding operations. |
| A height map is flat, inverted or empty | Check the selected image, its physical size, the depth range, Start Depth Color and the sampling method. For a custom edge, confirm the edge image was created before opening Height Map. |
| The cutter travels too close to a clamp | Check the actual fixture outline, Safe Zones, active cutter diameter and Safe Z. Inspect approach and retract moves in the exported file. |
For help, use shared PaliCAD and PocketCarve support. Include the PocketCarve version from Settings → About, your platform, the operation you chose, and the step where the result differed. For a height map, its physical dimensions and sampling mode are especially helpful.