Drawing and editing
Drag a shape from the Shapes window onto the page, or click it to drop one in the middle of the view. The page has rulers, a grid and guides, and a shape snaps to the grid as you place it. Every change is a step that Undo (Ctrl+Z) takes back and Redo puts back, for as many steps as you made.
- Select. Click a shape, and Shift-click or Ctrl-click to add or drop one. Drag a net across the page, or choose Area Select or Lasso Select under Home → Editing → Select. Ctrl+A selects all, and Select by Type picks shapes by kind, role or layer.
- Move, size and turn. Drag a shape to move it (Shift holds it to one axis, Alt turns snapping off), nudge it with the arrow keys, drag a handle to resize it (Shift on a corner keeps the proportions) and drag the round handle to rotate it. Several shapes selected share one set of handles and are stretched or turned together; a shape locked against a change of height keeps its height and is stretched in width, and one locked in width the reverse. One shape whose locked size is given by a formula is resized along its other axis.
- Size & Position. The Size & Position pane shows the X, Y, width, height, angle and pin of the shape selected, and takes typed values with units and arithmetic, such as
1 ft. 5 in. - Arrange. Align shapes, rotate them by a quarter turn, flip them, bring them to the front or send them to the back, one step or all the way, and group and ungroup them. Groups can hold groups, and a second click on a selected group selects the shape under the pointer.
- Copy and delete. Cut, copy, paste and Duplicate (Ctrl+D), or drag with Ctrl held to copy. Paste carries shapes to another page of the same drawing. Delete removes the shapes selected and the connectors glued to them.
- Draw your own shapes. Home → Tools → Drawing Tools has Rectangle, Ellipse, Line, Arc, Freeform and Pencil. Go on from the end of an open path to build one shape, and close the path to fill it.
- Shape operations. Union, Combine, Fragment, Intersect and Subtract make new shapes from the shapes selected. They are in the Operations menu at the end of the Draw tab, and in the Developer tab’s.
- Change Shape. Replace the shapes selected with a master of an open stencil, in one step.
- Find and Replace. Find searches shape text, Shape Data, shape names and user-defined cells in the selection, the page or every page, and Replace changes shape text one match at a time or all at once.
- Insert. Put a PNG, JPEG, BMP, EMF or WMF picture on the page. Link a shape to a page, another shape or a web address, and Ctrl+click it to follow the link. Insert fields from eight categories and symbols into a shape’s text.
- Format Painter. Copy the look of one shape onto others (Ctrl+Shift+P).
- Comments. Add a comment to a shape or a page, reply to it, edit or delete it, and step through the comments in the Comments pane. Their markers show on the page and are left out of a print.
- Shape Data. Give a shape fields of its own with Define Shape Data (a type, a format, a prompt, a list of values, hidden or shown, in your order) and fill them in the Shape Data window. A master can ask for the values of its fields when it is dropped.
- Callouts. Insert → Callout adds one of 14 callouts tied to the shape selected. It moves, copies and deletes with its shape, and a drag of its yellow handle ties it to another shape.
- Snap and glue. The Snap & Glue dialog chooses what shapes snap and glue to, and how strongly. The View tab turns snapping, the grid, the rulers, the guides and the connection points on and off.
- Zoom. Ctrl with the mouse wheel, or a pinch, zooms about the pointer. The status bar has a zoom slider, a Fit button and the Zoom dialog, and the Pan & Zoom pane shows the whole page.
Shapes, stencils and templates
The Shapes window shows one stencil at a time as a grid of cards, with a chooser above it. A connector’s card shows its line ends and pattern, and a group master’s card draws its members. DiaCraft’s own shapes are drawn by the project.
- Nine built-in stencils, 86 shapes. Basic Shapes, Basic Flowchart, Decorative Shapes, Arrow Shapes, Gane-Sarson, Cross-Functional Flowchart Shapes, Organization Chart Shapes, Network Devices, and Computers and Devices. More Shapes lists them by category and opens the ones a drawing left out.
- Network shapes. Network Devices has a router, a switch, a firewall, a cloud, a wireless access point, a load balancer, a modem, the internet, an Ethernet bar, a ring network, the zigzag Comm-link and the Network Link connector. Computers and Devices has seven servers, a desktop, a laptop, a rack server, a tablet, a mobile phone, a telephone, a printer, storage and a user. Each device has Shape Data in up to three groups, for its equipment, its network and, on a computer, its processor, memory, operating system and hard drive, and the label under a networked device shows its network name over its IP address.
- Stencil files. Open a Visio stencil (
.vssx,.vssm) or a DiaCraft stencil (.diacraft-stencil) from More Shapes → Open Stencil, and drag its shapes onto the page. - Search for shapes. Type in the Search shapes box and press Enter to search every stencil. The shapes you use most can go at the top of a stencil as Quick Shapes.
- Masters. A shape dropped from a stencil keeps its link to its master and takes what it does not set itself from it, and the drawing saves the master with it.
- Six templates. File → New offers a blank drawing and Basic Diagram, Basic Flowchart, Cross-Functional Flowchart, Organization Chart, Data Flow Model (Gane-Sarson) and Basic Network Diagram. Each template opens its page and its stencils, and its tile shows a description and a larger picture before you create the drawing.
- Template files. A Visio template (
.vstx,.vstm), an OpenDocument template (.otg) or a DiaCraft template starts a new, untitled drawing, and its first save asks for a name of its own.
Connectors and glue
- The Connector tool. Choose it under Home → Tools, or press Ctrl+3, and drag from one shape to another. An end glues to a connection point or to the whole shape; a glued end shows green and a free end square.
- AutoConnect. Rest the pointer on a shape and four arrows appear. Click one to join the nearest shape that way, or a new copy of the shape; drag from it onto a shape; or rest on it to pick one of four shapes to add. Drop a shape from the Shapes window on an arrow to place it and join it.
- Glue that follows. Move, resize or turn a shape, and the connectors glued to it are routed again. A connector set to Reroute As Needed, Never Reroute or Reroute on Crossover, or one whose route you edited, keeps the corners in the middle of its route where they are on the page, and its end legs stretch to follow. Drag a connector’s end to glue it somewhere else, or to free it.
- Lines. Design → Layout → Connectors sets right-angle, straight or curved lines for the connectors selected, or the page’s default for new ones, and so do Right-Angle Connector, Straight Connector and Curved Connector in a connector’s right-click menu. Show Line Jumps draws a jump where two connectors cross.
- Edit a route. Drag the handle in the middle of a leg of a right-angle connector to move that leg. A connector’s right-click menu has Reset Connector and a Reroute menu: Reroute Freely, Reroute As Needed, Never Reroute and Reroute on Crossover.
- Labels and arrowheads. Type a label on a connector, and choose its line ends from 46. A custom line end that names a line-end master of the drawing is drawn from that master.
- Layout and Routing. The Page Setup dialog’s Layout and Routing tab sets the page’s routing style and direction and its line jumps (which lines, their style and their size), with a preview, and its Spacing dialog sets the gaps between shapes and connectors. A new style routes again the connectors that follow the page and reroute freely. Separate, Overlap, Appearance and the spacing are saved with the drawing.
- Routing settings by command.
page.routingandpage.set_routingread and set the page’s routing style and spacing,connector.pathgives the corners of a connector’s route, andshape.behaviorandshape.set_behaviorset how a shape takes part in routing. Routing styles with a direction, such as a flowchart or a tree from top to bottom, are kept in the drawing and drawn as right-angle routes, and a new style for the page routes the connectors that follow it again.
Text and formatting
- Type. Select a shape and type, or double-click it to edit its text. The Text tool (Ctrl+2) makes a text box where you click or drag. The Text Block tool moves, sizes and turns the block of a shape’s text, and Rotate Text turns it a quarter. On a group whose
IsTextEditTargetcell is FALSE, typing edits the member on top of it. - Font and paragraph. Any font on your computer at any size, bold, italic, underline, strikethrough, a colour, and Change Case. Text is set left, centred, right or justified, at the top, middle or bottom of its block, with bullets in seven marks, indents, right-to-left text and vertical text. The Text dialog (F11) has Font, Paragraph and Text Block tabs.
- Fill. A solid colour, a gradient with stops you place, or one of 23 patterns, each with a transparency.
- Line. A colour, a weight, one of 23 dashes, 46 line ends, compound lines, caps, a transparency and gradient lines.
- Shadow. Ten presets, and Shadow Options for the colour, transparency, size, blur, angle and distance.
- Colours. Every colour menu has the theme’s colours, its variant’s, standard and recent colours, and More Colors for any colour by RGB or hex.
- The Format Shape pane. Fill, line and shadow in a pane at the right, where a slider shows its value on the page as you drag it.
- Quick Styles. Apply one of the theme’s styles from Home → Shape Styles. Each tile shows the shape in that style.
Themes, styles, layers, containers, swimlanes and org charts
- Themes. Five themes of DiaCraft’s own, each with four variants, from Design → Themes, for one page or every page, or no theme. A theme recolours and restyles the shapes that follow it, and standard colours stay as they are.
- Styles. A shape takes what it does not set itself from its master and from the drawing’s styles, as a VSDX file holds them. Drawing Explorer lists the styles, masters and pages of a drawing.
- Layers. Layer Properties makes, renames and removes layers, and sets for each whether it is shown, printed, active or locked, whether its shapes snap and glue, and its colour and transparency. Assign to Layer puts the shapes selected on layers.
- Containers. Insert → Container puts one of 14 containers round the shapes selected. Its members move, copy and delete with it, and a shape dropped into it joins it. The Container Format tab sets the margins and the heading style, fits the container to its contents or resizes it as they change, locks it, selects its contents or disbands it.
- Swimlanes. The Cross-Functional Flowchart template starts with three lanes and three phases. A shape dropped into a lane moves with the lane, and the Cross-Functional Flowchart tab adds lanes and separators, turns the lanes and rotates their labels.
- Org charts. The Organization Chart template has six position shapes, each with five Shape Data fields. Drop a position on its manager to link the two and lay the chart out. The Org Chart tab lays out the whole chart in six ways, sets out one manager’s team in four, and puts a photo on a position.
Layout
- Re-Layout Page. Design → Layout → Re-Layout Page lays out the shapes selected, or the page, from 14 tiles: a flowchart in four directions, a hierarchy, a compact tree, a radial or a circular layout. It routes the connectors again, and Undo puts everything back. More Layout Options sets the style, direction, alignment, spacing and connectors, with a preview.
- Auto Space. Home → Arrange → Position → Auto Space spaces shapes evenly and keeps each column and row aligned, and Spacing Options sets the gaps.
- Page breaks. View → Page Breaks draws where the sheets of a print divide the page, and Move off Page Breaks and Avoid Page Breaks keep shapes off those lines.
- Org chart layouts. Top to bottom, bottom to top, left to right, right to left, and hanging to the right or to the left. Re-Layout lays the chart out again and keeps each team’s arrangement.
Formulas and the ShapeSheet window
Every page, master, style and shape in DiaCraft is a ShapeSheet: sections of rows of cells, each holding a formula and its value, as a VSDX file holds them. The formulas and saved values of a file are kept as they were written, and when a shape changes, the cells that read it are worked out again.
- The ShapeSheet window. Turn on the Developer tab under File → Options → Customize Ribbon, then choose Developer → Shape Design → Show ShapeSheet, or right-click a shape or the page. The window opens the sheet of a shape, the page or the document, and Drawing Explorer opens a style’s or a master’s, each in a tab of an area below the drawing, beside it or in its place.
- Read a sheet. Sections come in one order. Each cell shows its formula and its value, or only one of them (the Formulas and Values boxes of the ShapeSheet Design tab). A cell the sheet holds is blue with a dot, an inherited one plain and an error in its own colour, and the tooltip says where a cell comes from. Sections can be hidden or folded, and the formula bar under the ribbon shows the whole formula of the cell selected. A group of cells is laid out as names and values in columns, a column’s edge can be dragged, and the name of a row whose formula has an error is red.
- Edit a cell. Double-click a cell or press F2 to edit its formula, start typing to replace it, or edit it in the formula bar. Enter, Tab or a click on another cell commits it as one undo step, and Escape leaves it as it was. As you type, the bar shows what the formula works out to. A refused formula stays open with the reason in words and its fault underlined, an empty formula makes the cell inherit again, and the cells a change worked out again are marked until the next one. Ctrl+C and Ctrl+V copy a formula, and the arrow keys, Home, End, Page Up and Page Down move around the sheet.
- Set any cell by command.
sheet.set_cellandsheet.set_cellswrite a formula or a value into any cell of any sheet, from the command line, the MCP server or the control channel. Each call is one undo step and is applied whole or not at all, and an empty formula makes a cell inherit again. - Rows and sections by command.
sheet.add_row,sheet.delete_row,sheet.add_sectionandsheet.delete_sectionadd and delete rows and sections, each as one undo step. A row inserted in the middle of a shape’s or a page’s section moves the rows after it up one number, and the formulas and glued connectors that named a moved row follow it; an insert into rows a shape takes from its master first gives the shape its own copy of them. - Read and try by command.
sheet.read,sheet.cellandsheet.sectionsread a sheet, andsheet.evaluateworks a formula out on a sheet without writing it.
Pages, page setup and printing
- Pages. Add, insert, delete, rename, duplicate and reorder pages from the page tabs, by dragging a tab or with Reorder Pages, and move between them.
- Background pages. Make a background page, or turn a page into one, and assign it to the pages that need it. Its shapes, such as a frame and a title block, show on those pages and are edited on its own tab.
- Page setup. Design → Page Setup sets the orientation, the size (a named size or your own) and Auto Size, which grows the page as shapes go past its edge. The Page Setup dialog sets the printer paper, the page size, the drawing scale (a listed scale or your own, with units) and the page’s name, type and background, and its Layout and Routing tab sets how the page’s connectors are routed and jump.
- Print. File → Print previews each sheet, with a map of the sheets for a page that takes several, and prints all pages or the current one, in colour or in black and white, to your system’s printer or as a PDF.
Files: open, save and convert
DiaCraft opens, edits and saves Visio drawings, stencils and templates, OpenDocument drawings and templates, and its own .diacraft files. Save keeps a drawing in the type it came in, and Save As writes it as another.
- Visio files. Drawings (
.vsdx,.vsdm) open for editing, templates (.vstx,.vstm) start a new drawing, and stencils (.vssx,.vssm) open from More Shapes. Save writes the file back as the same type, and the parts of the file that DiaCraft does not use are kept. - OpenDocument drawings. An
.odgopens for editing, an.otgstarts a new drawing, and a flat.fodgis written back to its own file by Save. An edit is written into the file’s own markup, and the rest of the file is kept as it was. A new shape is written as the outline it draws, arcs included, so other programs draw the built-in flowchart, data flow and network shapes by their own outlines. - The .diacraft format. A new drawing is saved as
.diacraftfirst. The file holds the pages, shapes, styles and pictures, keeps the details that came from a VSDX or OpenDocument drawing without storing the original file, and has a public specification. Stencils and templates have.diacraft-stenciland.diacraft-template. - Save As across the formats. A VSDX drawing can be saved as any of the six VSDX types, as
.diacraft,.odgor.otg; an OpenDocument drawing as.odg,.otg,.diacraftor a VSDX type; and a.diacraftdrawing as any of them. Where the new type cannot hold part of a drawing, a card says what, in words, and after the save DiaCraft reads the new file back and names what differs. - Macros. The macro project of a
.vsdm,.vssmor.vstmis kept as file data and never run. Save As to a type that cannot carry it asks whether to leave it out or to save as the macro-enabled type. - The Save dialog offers the drawing’s own type first and changes the extension of the name to the type you choose. The title marks a drawing with unsaved changes, and DiaCraft asks before it closes one, and before it replaces a file that changed on disk.
- Window settings. Whether the grid, rulers, guides and connection points show is saved with the drawing.
- Damaged and very large files are refused in words, and the drawing you have open stays as it was.
- Check a save first. The command
file.check_compatibilitysays what a save as a given type would carry and what it would lose, and writes nothing.
Open and save drawing files · Work with .diacraft files · Visio files in DiaCraft
Export to PNG, SVG and PDF
- From the window. File → Export, or View → Export → Picture, writes the page on view as PNG, SVG or PDF. The file is made from a copy of the drawing on a thread of its own, so you can go on working.
- From the command line.
diacraft-cli exportwrites any page, with--dpiup to 2400 for a PNG, letters as text or as outlines in an SVG or a PDF, and--transparentfor no white paper under the drawing. - What each format holds. A PNG is the page as the window draws it. An SVG has vector paths, gradients, blurred shadows and text as text where the font allows it. A PDF has vector paths, gradients, pictures and searchable text in an embedded subset of the font where its licence allows embedding, and draws a blurred shadow hard-edged.
- Print to PDF. Print’s Save as PDF writes what a printer would be given, with a page for each sheet.
The browser version
The same editor runs in a browser tab at diacraft.app, with nothing to install. Its controls are the desktop window’s, drawn by the same program.
- Files on your computer. Open
.diacraft, Visio and OpenDocument files with File → Open or by dropping them on the page, save in the type you choose, and export PNG, SVG and PDF. Print saves the PDF that a printer would be given. - Nothing sent. The editor sends no drawing anywhere and stores nothing in your browser.
- A window of its own. In Chrome and Edge, the File view’s Open in its own window button offers to install the editor in a window with no tabs and no address bar, and View → Full Screen gives the editor the keys the browser keeps.
- Browsers. It draws with WebGPU, or WebGL 2 where there is none, and has been run in current releases of Chrome and Firefox on Linux. For very large drawings, your own fonts, a printer and automation, use the desktop app.
Open DiaCraft in your browser · What the browser version needs and what it keeps
The command line
Each download includes diacraft-cli, which runs DiaCraft’s commands with no window. What it did is printed as JSON, a line for each file written or command run, and the exit status says whether it worked.
convertsaves a drawing as another type, chosen by the extension of--out, with the same rules as Save As, or writes a page as a picture.exportwrites one page as PNG, SVG or PDF.runruns any of the editor’s commands, one by one or from a file, andcommandslists them.roundtripandcompare --contentcheck that a drawing saved through another format comes back with the same content.mcpstarts the MCP server.
The MCP server and AI agents
Through the MCP server, diacraft-cli mcp, an AI agent runs the same commands the window uses.
- Two ways to work. With
--headlessthe agent has a drawing session of its own; with--connect 127.0.0.1:7997it edits the drawing you see in the window. - The tools.
command_listfinds the commands and their parameters,command_runruns one,command_batchruns up to 256 as one undo step, anddoc_inspectdescribes the drawing. With the window,ui_inspectandui_screenshotshow the agent what you see. - MCP bundles. Each release has a
.mcpbbundle for each system and processor of the downloads, which an app that installs MCP servers takes with no configuration to write.
The control channel
Start the desktop app with diacraft --control 7997, and it listens on 127.0.0.1, your own computer, for one JSON request per line.
- Commands.
engine.executeruns any command,engine.commandslists them, anddocument.inspectdescribes the drawing. - The window.
ui.inspect,ui.screenshot,ui.elements, andui.click,ui.drag,ui.keyand the others, drive the window as a person would. The window’s own commands open its panes, dialogs and ShapeSheet tabs, and drive the ShapeSheet’s editor. - Local and on request. The port is open only when you start the app with it, and it has no password: use it while a program drives the app. A connection left idle for five minutes is closed.
Privacy
- No account and no telemetry. Draw, save and export offline.
- Only what you ask for. The control port listens on your own computer, the MCP server uses the connection you give it, a print goes to your system’s print service, and a licence link opens in your browser.
- In the browser, a file you open is read on your computer, and nothing is uploaded or stored.