The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Box with only three lines - the holy grail?? (http://forums.omnigroup.com/showthread.php?t=11283)

Chris 2009-03-09 11:04 AM

Glad it worked for you. I've actually had cause to use it a couple times since then myself.

Simon Knight 2009-10-21 01:33 PM

Chris, I have just found you code and instructions, works a treat.
Thanks

Simon

abbieonline 2009-10-22 12:04 PM

[QUOTE=Chris;55124]It's pretty easy to make your own. Copy the text below [I]exactly[/I] and save it to an ordinary text file called OpenBox.graffleshapes. Then put this in the folder Library:Application Support:OmniGraffle:Shapes under your home folder. (You may have to create it. Then open OG and you'll see your shape next to the regular rectangle.

[CODE]{
shapes = (
{
InspectorGroup = 1.5;
ShapeName = "OpenBox";
FillPath = {
elements = (
{element = MOVETO; point = "{-0.5, -0.5}"; },
{element = LINETO; point = "{0.5, -0.5}"; },
{element = LINETO; point = "{0.5, 0.5}"; },
{element = LINETO; point = "{-0.5, 0.5}"; },
{element = CLOSE; }
);
};
StrokePath = {
elements = (
{element = MOVETO; point = "{-0.5, -0.5}"; },
{element = LINETO; point = "{-0.5, 0.5}"; },
{element = LINETO; point = "{0.5, 0.5}"; },
{element = LINETO; point = "{0.5, -0.5}"; }
);
};
}
);
}
[/CODE][/QUOTE]

Thanks! this is exactly what I came here for.

mdconrad 2009-10-26 06:31 AM

Feeling left out...
 
I'm feeling left out here... I think I have this set up correctly, but I'm not finding my holy grail...

Here's my text file and the location it's saved in:
[IMG]http://grab.by/c7e[/IMG]

Here's what I'm seeing after restarting OG:
[IMG]http://grab.by/c7f[/IMG]
am I missing something?

Joel 2009-10-26 10:25 AM

I'd make sure that the .graffleshapes file is plain text, it looks like it's RTF in your screenshot there.

xiamenese 2009-10-26 04:47 PM

Without wishing to appear patronising, looking at your screenshot, it seems to me that you've got a normal box selected in the shapes inspector. Would the result of the code not create the shape at the bottom of the list of available shapes ... have you scrolled down to see if it is there?

Chris 2009-10-28 12:56 PM

[QUOTE=xiamenese;68898]Without wishing to appear patronising, looking at your screenshot, it seems to me that you've got a normal box selected in the shapes inspector. Would the result of the code not create the shape at the bottom of the list of available shapes ... have you scrolled down to see if it is there?[/QUOTE]

The "InspectorGroup" line controls where it appears; the shapes appear in order, starting with shape 1. So having a 1.5 there means it should appear between shapes 1 and 2, after the square and before the circle.

I suspect, like Joel said, the problem is the way the file has been saved, as rtf, not plain text. I think that rtf is the default setting of TextEdit, and can be changed in the prefs.

xiamenese 2009-10-28 01:58 PM

My apologies. I have never tried adding a shape to the group, and didn't read the script. I merely assumed in my only semi-literate way, that as there was only one custom shape in the shapes library, it would be added in the inspector at the end of those that are built in to OG.

Mark

dghpts 2010-04-14 03:47 PM

Chris!
Thanks for this info it works beautifully, now the real question, I want to make the same shape actually be a Tab, that is 180 degrees from what you have, where is the documentation on creating the shape you made?
I would like to find out which parameter to change to flip the shape as well as find out how to make more shapes on my own.


All times are GMT -8. The time now is 10:59 PM.

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