
Set a background color or an image to use on the canvas in the Canvas Fill or Background Image inspectors.Specify an Infinite Canvas in the Canvas Size inspector.Choose a default line type in the Line inspector.Turn on Auto layout in the Diagram Layout inspector.Place Ruler Guides on the canvas so you don’t have to recreate these for every project that uses the template.To create a new template, choose File ▸ New Resource ▸ New Template, and then use the inspectors to set the properties for the template. The Info pane displays a preview of the template, along with additional information about the template’s settings, including whether auto-layout is on or off, the dimensions of the canvas, the units of measurement, and whether snap to grid is on or off. This button opens an Info pane along the right side of the Resource Browser that displays additional information about the selected template. To learn more about a particular template, first click to select a template from one of the folders, and then click in the Resource Browser’s upper-right corner. The Resource Browser is kind of like an OmniGraffle-specific Finder, that gives you access to your OmniGraffle files, templates, and stencils.Īfter opening the Resource Browser, you can either click the Templates heading in the sidebar to view all of the available templates, or select one of the folders for something more specific to the project you plan to work on. To choose a different template, rather than choosing File ▸ New to create a new document, choose File ▸ Resource Browser instead. It’s pretty sparse, which is great when you’re just getting started. When you create a new document-by either choosing File ▸ New or pressing Command-N-OmniGraffle loads the default template into the window, supplying you with a single canvas and its base layer.Īs noted earlier, the default template for OmniGraffle 7 is the Blank template. TargetStencil.In OmniGraffle, a template is used to define the base properties of a project. After querying each graphic, the resulting array is returned as the result of the main function.įunction getGraphicNamesForStencil(stencilName) The callback function iterates the list of stencil graphics and each is queried for the value of its name property.

When the stencil file has been read by the application, the callback function will be executed.

This is done using the load() method, which has as its direct parameter, a callback function.

To get information about the graphics in a stencil, the stencil file must first be read into memory by the OmniGraffle application so that the stencil’s contents can be examined.
#Omnigraffle templates free install
TIP: As a service to OmniGraffle users, the Omni Group hosts STENCILTOWN, a website from which you can download and install stencil files containing very useful collections of stencil graphics.Ī basic script task is to identify, by name, the graphics within a stencil. This page contains routines for performing those functions. So with that in mind, an important function of the scripting support in OmniGraffle is to automate the process of locating and importing stencil graphics into your documents. However, in scripting terms, each stencil in the stencil file is referred to as a graphic. Each object or object group in an OmniGraffle stencil file becomes an individual stencil. Stencils can be as simple as a square or triangle, or as complex as a multilayered and meticulously designed illustration. A stencil is a reusable shape that can be dragged to the canvas from the Stencils window.
