View Single Post
If you copy a line in OmniGraphSketcher and paste it into OmniGraffle, you will simply get a text box full of numbers.

This script allows you to copy an OGS line (or a set of XY coordinates from Excel etc), and have it drawn in OmniGraffle.

The script can also use Korn shell math function syntax to define and draw lines in OmniGraffle, or place the set of points in the clipboard, for pasting into OmniGraphSketcher or Excel etc.

First draw and select a plain rectangle in an OmniGraffle canvas. Then run the script. (The graph will be sized to match the rectangle, and drawn on a new layer above it).

To draw a line copied from OmniGraphSketcher, use:
fn=clip
in place of a math function.

Attached Files
File Type: applescript DrawGraph-004.applescript (10.7 KB, 536 views)

Last edited by RobTrew; 2011-11-13 at 12:26 PM.. Reason: Ver 0.3 bug fix involving negative values of x in expressions