The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   I just want to draw a line!?! (http://forums.omnigroup.com/showthread.php?t=7446)

joeworkman 2008-03-09 08:21 AM

I just want to draw a line!?!
 
I feel really dumb that I can't figure this out. I just want to draw a line inside a triangle. I tried with the the Line tool (seems obvious) but it just does not doo what I want. Basically I want to split the triangle into thirds (and then place text on those lines). However, the line tool always want to start the line from the center of the triangle...Please Help :o)

Cheers
Joe

Ken Case 2008-03-09 08:42 AM

Try locking the shape you don't want the line to interact with. (To lock a shape, select it and click the lock icon in the toolbar, or Control-Click on it and select "Lock" from the contextual menu.)

Hope this helps!

joeworkman 2008-03-09 09:03 AM

Great!!! Thanks!

Andrew 2008-03-10 11:30 AM

Another approach to this would be to draw a line away from the triangle and use the "Properties: Connections" inspector to turn off "Allow connections to other objects." Then you can drag the line over the triangle and position it and its endpoints without the line attempting to connect to the triangle.

If you usually don't want your lines to attempt to connect to shapes, you can select the line tool by Option-clicking it, or clicking and holding the line tool to get the tool menu, and choose "Inspect Style" from that menu. Then the inspectors will reflect the tool, and you can go and turn off "Allow connections to other objects." Then future lines will not try to connect to objects unless you draw the line and then turn that attribute back on.


The reverse approach would be to disable connections to the triangle. This is done by selecting the triangle, then unchecking the "Allow connections from lines" checkbox in the "Properties: Connections" inspector. Then you will be able to draw lines on the triangle without them attempting to connect to the triangle. However, I think this probably is not as good a match for your usage as the approach above.


Another approach, which would take more effort up front but which might be easier long-term, would be to edit the magnets on the triangle to place a magnet on each side of the triangle (or your case, two magnets on each side, splitting the triangle into thirds), then draw lines connecting those magnets. This has the benefit of being very flexible: if you subsequently resize the triangle, the lines trisecting the triangle will resize and shift as appropriate. To edit the magnets, use the Magnet tool, and/or use the magnets popup in the "Properties: Connections" inspector. The inspector popup has a setting for "two magnets per side," which may be exactly what you're looking for in this case. (Note that with certain line types, this can be a bit fiddly, and if you have auto-layout turned on, you're likely to be fighting it.)


One final alternative is to hold down the Option key while drawing the line - this will prevent the line from attempting to connect to any shapes. (Use with the Shift key to keep your lines horizontal or vertical.)

-andrew


All times are GMT -8. The time now is 03:05 AM.

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