Programatically generating an omnigraffle diagram
David Holt
programmingosx at mac.com
Thu Jan 27 13:57:31 PST 2005
Hello,
I would like create an applescript to programatically generate a
process flow diagram from a database. Is it possible?
The data I am currently capturing in the database are: type of shape
(decision, end point, process), previous shape, next shape, shape
title. What else would I have to include to get the shapes on a diagram
with proper lines/arrow heads?
I had a look at the applescript to generate a simple box. How much of
this is necessary? Could I possible generate origins on the fly? I
tried running the following script with no origin defined and the shape
drew in the upper left hand corner.
Here is the applescript:
tell front document of application "OmniGraffle Professional"
tell page 1
make new shape at end of graphics with properties {magnets: {{0, 1},
{0, -1}, {1, 0}, {-1, 0}}, draws shadow: false, origin: {64.000000,
103.000000}, size: {135.000000, 132.000000}}
end tell
end tell
thanks,
David
More information about the OmniGraffle-Users
mailing list