## inkscape-user

 [Inkscape-user] centering diagonal line points From: Rob Benton - 2004-10-12 16:39:09 ```I've been working some with inkscape some and I have a problem I'm not sure how to solve. Let me draw a simple diagram: +----------+ | Box 1 | +----------+ / / +----------+ | Box 2 | +----------+ Is there a way I can exactly line up the end of those points to the center of each box? The top point of the line to the middle of Box 1 and the bottom point to the middle of Box 2. I didn't know if there was a good way to do this. Any ideas appreciated. Thanks ```
 Re: [Inkscape-user] centering diagonal line points From: John Cliff - 2004-10-12 18:35:56 ```cant think of an overly simple way, but if you want an accurate one, the following should work: * Duplicate the boxes, select both the duplicates and do Ctrl K. * go to node edit mode, select the bottom 2 nodes of the top box, and hit the Add node button, repeat with the top 2 of the bottom box. * select the new centre node at the bottom of the top box and one of the other bottom nodes, hit the "split node between points" button to remove the segment, repeat for bottom box. * select the 2 centre nodes, and hit "join paths at selected nodes with new segment" * delete all the other nodes. You should be left with a 2 node path thats perfectly lined up with the centres. Cheers John --- Rob Benton wrote: > I've been working some with inkscape some and I have a problem I'm > not > sure how to solve. Let me draw a simple diagram: > > +----------+ > | Box 1 | > +----------+ > / > / > +----------+ > | Box 2 | > +----------+ > > Is there a way I can exactly line up the end of those points to the > center of each box? The top point of the line to the middle of Box 1 > > and the bottom point to the middle of Box 2. > > I didn't know if there was a good way to do this. Any ideas > appreciated. > > Thanks > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of them. > Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find > out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Inkscape-user mailing list > Inkscape-user@... > https://lists.sourceforge.net/lists/listinfo/inkscape-user > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com ```
 Re: [Inkscape-user] centering diagonal line points From: bulia byak - 2004-10-12 18:49:58 ```A much simpler way - not precise but good enough if you do it at high zoom: take advantage of the selector handles! The bottom handle of the top box will be exactly in its middle. Zoom in there, notice the place, and drag the end of your connector there. If you want more precision, zoom in more and repeat. ```
 Re: [Inkscape-user] centering diagonal line points From: Robert Crosbie - 2004-10-12 18:53:50 ```If you want to create graphs or flowcharts such as this, you may just try using Dia or Graphviz. Both can export to SVG I believe. Another option is to simply turn on the grid and snapping to draw your boxes and lines. Rob. On Tue, 12 Oct 2004 11:38:33 -0500, Rob Benton wrote: > I've been working some with inkscape some and I have a problem I'm not > sure how to solve. Let me draw a simple diagram: > > +----------+ > | Box 1 | > +----------+ > / > / > +----------+ > | Box 2 | > +----------+ > > Is there a way I can exactly line up the end of those points to the > center of each box? The top point of the line to the middle of Box 1 > and the bottom point to the middle of Box 2. > > I didn't know if there was a good way to do this. Any ideas appreciated. > > Thanks > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Inkscape-user mailing list > Inkscape-user@... > https://lists.sourceforge.net/lists/listinfo/inkscape-user > -- Rob. http://members.rogers.com/rcrosbie ```
 Re: [Inkscape-user] centering diagonal line points From: Rob Benton - 2004-10-14 23:11:26 ```You know I tried Dia today and I liked it. But when I exported to svg it created a *huge* document/papersize. All the fonts were big as well. I ran into a few other issues as well. Robert Crosbie wrote: > If you want to create graphs or flowcharts such as this, you may just > try using Dia or Graphviz. Both can export to SVG I believe. > > Another option is to simply turn on the grid and snapping to draw your > boxes and lines. > > Rob. > > On Tue, 12 Oct 2004 11:38:33 -0500, Rob Benton > wrote: > >>I've been working some with inkscape some and I have a problem I'm not >>sure how to solve. Let me draw a simple diagram: >> >> +----------+ >> | Box 1 | >> +----------+ >> / >> / >> +----------+ >> | Box 2 | >> +----------+ >> >>Is there a way I can exactly line up the end of those points to the >>center of each box? The top point of the line to the middle of Box 1 >>and the bottom point to the middle of Box 2. >> >>I didn't know if there was a good way to do this. Any ideas appreciated. >> >>Thanks >> >>------------------------------------------------------- >>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >>Use IT products in your business? Tell us what you think of them. Give us >>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >>http://productguide.itmanagersjournal.com/guidepromo.tmpl >>_______________________________________________ >>Inkscape-user mailing list >>Inkscape-user@... >>https://lists.sourceforge.net/lists/listinfo/inkscape-user >> > > > ```
 Re: [Inkscape-user] centering diagonal line points From: Rob Benton - 2004-10-13 17:04:18 ```The only thing here is when I size the rectangle by "rectangle properties", what measure of units is that? I'd like to do pixels but I can't seem to match up. bulia byak wrote: >A much simpler way - not precise but good enough if you do it at high >zoom: take advantage of the selector handles! The bottom handle of the >top box will be exactly in its middle. Zoom in there, notice the >place, and drag the end of your connector there. If you want more >precision, zoom in more and repeat. > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >Use IT products in your business? Tell us what you think of them. Give us >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >Inkscape-user mailing list >Inkscape-user@... >https://lists.sourceforge.net/lists/listinfo/inkscape-user > > > > ```
 Re: [Inkscape-user] centering diagonal line points From: Aaron Spike - 2004-10-13 17:22:18 ```Rob Benton wrote: > The only thing here is when I size the rectangle by "rectangle > properties", what > measure of units is that? I'd like to do pixels but I can't seem to > match up. Just asked that question myself. It seems that those units are SVG's "user units" likewise with the path data units. In Inkscape there are 90 user units to an inch. That makes user units 0.8 of a point I believe. Aaron Spike ```
 Re: [Inkscape-user] centering diagonal line points From: bulia byak - 2004-10-14 03:07:40 ```> The only thing here is when I size the rectangle by "rectangle > properties", what > measure of units is that? I'd like to do pixels but I can't seem to > match up. The "properties" dialogs are just a slightly prettified XML editor. The show you exactly the values of the attributes of the corresponding element. So, they are SVG anonymous units ("pixels") normally. ```