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)

basil 2009-02-10 12:44 PM

Box with only three lines - the holy grail??
 
Hello. I'm trying to make a box, which I can do. Then I'm trying to have it only draw three lines out of four, i.e. an open box. This is useful for, like, tabs and stuff.

Any tips? I'm currently using a second white box to break the fourth wall which is leaving me with an empty feeling inside.

Brian 2009-02-10 02:47 PM

If I remember correctly, open shapes like this aren't supported in the current version, but we have a feature request open on 'em. If you email [EMAIL="omnigraffle@omnigroup.com"]omnigraffle@omnigroup.com[/EMAIL], the support ninjas can add you to that request, so the team will know it's something you'd like, as well.

basil 2009-02-10 02:55 PM

thanks! i'll do that.

Chris 2009-02-12 01:10 PM

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]

zaxaz 2009-02-18 12:06 PM

I tried this but I have no "Openbox" anywhere that I can determine.

Chris 2009-02-18 12:13 PM

Can you say exactly what you did and where you are looking? (It works for me.) Make sure that you included all the braces when you created the file, and that you gave it the right name (that it didn't get a .txt extension added, for example), and that you put it in the right place. You should see the open box next to the regular box in the shapes inspector.

warrenn 2009-02-18 07:04 PM

I also didn't have any luck with the OpenBox shape. I put it into ~/Library/Application Support/OmniGraffle/Shapes (I needed to create the directory Shapes). I used TextEdit, made sure it was plain text (not rich), and that there were no extensions but .graffleshapes. Then I realized that Apple persists in treating us like idiots and suppresses some extensions in the finder. Using the terminal, I discovered that they appended .graffle to the file name! I fixed it and still there is no open box (after restarting OG). Perhaps I should try using an editor like emacs.

Cheers,

wn

Chris 2009-02-18 09:23 PM

Hmm, I just did it on this laptop and it worked for me. I used TextEdit and copied it directly from the post above. I had to get rid of the .txt extension that TextEdit added.

Make sure you select the shape tool, then look in the inspector. For me it shows up second, between the regular box and the circle.

warrenn 2009-02-18 09:57 PM

Ah, now I see it. I was looking at the stencil. It does indeed appear in the shape tool inspector. Thanks.

wn

basil 2009-03-08 01:25 AM

chris - never replied to say thanks, this has been super useful! thank you.

basil


All times are GMT -8. The time now is 11:24 PM.

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