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 Today's Posts

 
Box with only three lines - the holy grail?? Thread Tools Search this Thread Display Modes
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.
 
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 omnigraffle@omnigroup.com, the support ninjas can add you to that request, so the team will know it's something you'd like, as well.
 
thanks! i'll do that.
 
It's pretty easy to make your own. Copy the text below exactly 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}"; }
		);
	    };
	}
    );
}
 
I tried this but I have no "Openbox" anywhere that I can determine.
 
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.
 
chris - never replied to say thanks, this has been super useful! thank you.

basil
 
Glad it worked for you. I've actually had cause to use it a couple times since then myself.
 
Quote:
Originally Posted by Chris View Post
It's pretty easy to make your own. Copy the text below exactly 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}"; }
		);
	    };
	}
    );
}
Thanks! this is exactly what I came here for.
 
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:


Here's what I'm seeing after restarting OG:

am I missing something?
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Aligning lines Celebrimbor OmniGraffle General 1 2011-12-20 09:51 PM
Tables with Horizontal Lines (but not Vertical Lines)? lanceosborne OmniGraffle General 6 2010-11-11 01:40 AM
orthogonal lines? sacarmic OmniGraffle General 0 2007-02-13 05:41 AM
connecting lines to lines juliabell OmniGraffle General 9 2006-08-12 04:31 AM
connecting lines to lines? st.clair OmniGraffle General 1 2006-04-24 11:12 AM


All times are GMT -8. The time now is 08:23 PM.


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