The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Connector Shapes - how are they created Thread Tools Search this Thread Display Modes
In a fit of peak I read part of the manual and noticed that connection shapes were new in OG version 5 and stored in a connections stencil. I am wondering if it is it possible to create/design my own connection shapes and if so how?

Simon
 
I have not been able to create a connecting shape from scratch but it is possible to modify a shape from the connections stencil. I modified the lightning bolt into a curved arrow.

Simon
Attached Files
File Type: zip connectorShapeExample.graffle.zip (47.2 KB, 272 views)
 
Is there another way to create a custom connecting shape? It would be very useful for me...
 
There's a mildly complicated way to make custom connecting shapes:

Draw the shape you'd like using whatever method is appropriate: use the pen tool, modify an existing shape, do shape editing...

Select the shape and do Copy As > Applescript.

Open the Applescript Editor and paste in the script.

The script should begin, for example:
"tell application "OmniGraffle Professional 5"
tell canvas of front window
make new shape ...."

Add the word "connectable" between "new" and "shape:"
"tell application "OmniGraffle Professional 5"
tell canvas of front window
make new connectable shape ...."

Run the script to produce the new connecting shape. It will appear right under the shape you copied; you'll have to move that one out of the way. (Alternatively, delete the original before running the script.) The new shape will have red and green connecting points just like other connecting shapes. As far as I can tell, those connecting points appear in the middle of the left and right sides of the shape's bounding box, so you might want to take that into account in drawing the shape.

Last edited by john.gersh; 2011-02-01 at 01:17 PM..
 
John,

Great tip, thanks.

Simon
 
Thanks for sharing the tip.
 
You're welcome. OG's extensive scripting capability and the copy-as-applescript feature are extremely powerful. You can find out how all kinds of things are built under the hood and tinker away. In this case, I just copied-as-script an existing connector shape, saw the word "connectable," and went on from there.
 
Thank you! Very useful :)
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I align an object parellel to my connector? amit_e OmniGraffle General 0 2011-03-06 08:32 PM
Connector Problems laura690 OmniGraffle General 2 2011-02-10 07:18 AM
how do I reverse connector arrowhead? cj_reed OmniGraffle General 1 2010-01-05 10:48 AM
Custom shapes in shapes inspector sunshine OmniGraffle General 4 2009-02-27 06:54 AM
Distribute Connector Midpoints? stevenkan OmniGraffle General 0 2008-11-03 11:11 AM


All times are GMT -8. The time now is 10:22 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.