| View previous topic :: View next topic |
| Author |
Message |
GazzaJ Newbie

Joined: 13 Jul 2004 Posts: 1
|
Posted: Tue Jul 13, 2004 1:27 am Post subject: Defining new arrow styles (for database diagrams) |
|
|
Is there a way of defining new arrow styles. I am drawing a database model so need the crow's feet arrow ending.
I see you can load arrowheads from an soe file. Has anyone created any custom arrow styles for OpenOffice Draw? |
|
| Back to top |
|
 |
ftack Moderator


Joined: 27 Jan 2003 Posts: 2748 Location: Belgium
|
Posted: Tue Jul 13, 2004 2:39 am Post subject: |
|
|
| Help is obscure in this, but first draw an arrowhead the way you want it and make sure it is one single object. Orient the basis of the arrow horizontally to the bottom. Then select Format - Line and click "Add" on the Arrow styles tab. |
|
| Back to top |
|
 |
machp Newbie

Joined: 11 Aug 2004 Posts: 1
|
Posted: Wed Aug 11, 2004 6:26 am Post subject: |
|
|
The internal format of arrow styles is rather obscure. It seems that objects are always filled. Even a self-defined line arrow '>' becomes a solid triangle. The arrow end points are closed automatically. Closing the polygon by drawing a third segment over the second and a fourth over the first results in nothing at all. The segments are XOR-ed away by each other.
Draw is a splendid tool for making UML diagrams. However it lacks the UML arrow styles. |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 4021 Location: Lawrence, Kansas, USA
|
Posted: Wed Aug 11, 2004 6:49 am Post subject: |
|
|
I have had moderate success using an approach like this for "hollow" arrowhead shapes.
Draw fills your polygon. Your arrowhead must be a closed polygon, so that it can be filled.
Suppose, to represent a certian OOo Interface from some OOo service, you need the UML circle "arrowhead" symbol?
Draw will fill your circle.
But what if the shape wern't a circle? What if it were shaped, say, like the letter C, but with the gap so small that you don't really notice it? This is a closed polygon whose exterior traverses the outside curve of the C, and then backtraces the inside curve of the C to form a closed polygon. _________________ Want to make OOo Drawings like the colored flower design to the left? |
|
| Back to top |
|
 |
gizmo OOo Advocate


Joined: 13 Oct 2004 Posts: 249 Location: Everywhere
|
Posted: Sat Apr 23, 2005 12:30 pm Post subject: |
|
|
Hey folks,
| DannyB wrote: | | But what if the shape wern't a circle? What if it were shaped, say, like the letter C, but with the gap so small that you don't really notice it? This is a closed polygon whose exterior traverses the outside curve of the C, and then backtraces the inside curve of the C to form a closed polygon. |
yes, that seems to work fine, even if you set the gap to zero width. I've created the UML white diamond that way:
<draw:marker draw:name="unfilled diamond" svg:viewBox="0 0 2334 4000" svg:d="m0 2000 1167-2000 1167 2000-1167 2000v-500l833-1500-833-1500-833 1500 833 1500v500z"/>
But I found no way to build it from a couple of lines. I couldn't join them to a closed polygon. Only the tool for closed polygons did it.
Bye,
-el- |
|
| Back to top |
|
 |
mscscotch Newbie

Joined: 15 Apr 2005 Posts: 3
|
Posted: Mon Jul 25, 2005 11:50 am Post subject: Easy way to get the symbol you want. |
|
|
Just wanted to give more tips on how to get the symbol you want.
If you drop in a special text character,
Convert to polygon,
then draw a small rectangle across it where you want a hard to see gap.
Now select both object and right click - shapes ->subtract.
You know have an object thats a polygon but it won't fill.
Then follow the directions above to add the style.
Remember when you go to use the style if it isn't thick enough you can change the size per line end.
I successfully did this with an infiniti symbol.
But had to scale it to .20" from the default .12"
Alex |
|
| Back to top |
|
 |
Cheakamus Newbie

Joined: 24 Dec 2003 Posts: 1 Location: North Vancouver, BC
|
Posted: Fri Jun 22, 2007 2:05 pm Post subject: Re: Defining new arrow styles (for database diagrams) |
|
|
| GazzaJ wrote: | Is there a way of defining new arrow styles. I am drawing a database model so need the crow's feet arrow ending.
I see you can load arrowheads from an soe file. Has anyone created any custom arrow styles for OpenOffice Draw? |
I created an odg file with polygons for the four common crow's feet arrows. You can get it at http://www.thinktek.ca/articles/article2.php |
|
| Back to top |
|
 |
|