Inkscape.org
Beginners' Questions Is there a way to draw rectangles by 3 points?
  1. #1
    SilvioManuel SilvioManuel @SilvioManuel

    Maybe I missed something in the extensions? It would be cool to draw such rectangles quickly, creating small maps of the area. I wonder if this will be implemented in the next releases of the program?

  2. #2
    Martin Owens Martin Owens @doctormoπŸŒΉβš–πŸ§€

    Can't you just create a rectangle object directly?

  3. #3
    SilvioManuel SilvioManuel @SilvioManuel

    Of course I can. But then I have to: 1) rotate it, 2)convert it to a curve, 3)create guides for correct editing, 4)enter node edit mode and edit the rectangle to the value I need.Β Isn't it a lot of action. In Autocad and Coreldraw this is implemented. Simply I thought, that if already circle on 3 points have been able do, then not fast approaching and rectangle

  4. #4
    brynn brynn @brynn
    SilvioManuel

    I have to: 1) rotate it, 2)convert it to a curve, 3)create guides for correct editing, 4)enter node edit mode and edit the rectangle to the value I need.

    I'm a little lost with all that.Β  Are you saying that a rectangle is not your ultimate goal?Β  I did help someone a few months back, who rather than learning other features of the program, started drawing everything, first as a rectangle, and then editing it into whatever they needed with the Node tool.Β  So I showed them how to use the Pen tool.

    If you're actually creating a rectangle for the end goal, you can set the size of the rectangle MUCH easier than all that.

    • draw the rectangle
    • switch to the Selection tool
    • set the width and height on the control bar (the first bar of buttons above the horizontal ruler)
    • or it's also possible to set the size of the rectangle using the Rectangle tool (on the control bar) but I find it easier to use the Selection tool

    Β 

  5. #5
    SilvioManuel SilvioManuel @SilvioManuel

    Imagine that you need to draw a small (or large) map, scheme, with houses and you need to do it quickly. All is well as long as you draw rivers, roads and other intersections. But once you start drawing residential neighborhoods.... Ugh!

  6. #6
    Martin Owens Martin Owens @doctormoπŸŒΉβš–πŸ§€

    Is it something like this?

  7. #7
    SilvioManuel SilvioManuel @SilvioManuel

    I think so! However, how did you make the turn in orthogonal mode? Is it possible to make an arbitrary angle and then draw in orthogonal mode?

  8. #8
    Martin Owens Martin Owens @doctormoπŸŒΉβš–πŸ§€
    *

    Oh good because I just programmed this feature πŸ˜… I've got the ok to put it in for 1.0

    https://gitlab.com/inkscape/inkscape/merge_requests/1033

    The way it works is you set the pen tool to paraxial mode (the icon shown in the gif selected). The previous paracial mode only allowed 90Β° lines fixed to the origin. This new feature allows you to set the initial angle (using snapping or free hand) and then the rest of the angles are 90Β° after that.

  9. #9
    SilvioManuel SilvioManuel @SilvioManuel
    *

    Can I use Your code to do the same? If so, how can I integrate it into the Incscape environment?

  10. #10
    Martin Owens Martin Owens @doctormoπŸŒΉβš–πŸ§€

    If you can wait for the builds once it's been merged into master, then you can try out the latest bleeding edge version with this funtionality. But it's not in master /yet/ (going through review)

    Are you in a rush?

    Also; what operating system are you using?

  11. #11
    SilvioManuel SilvioManuel @SilvioManuel

    Thank you, I'm not in a hurry and if necessary-I will wait patiently. Operating system-windows 10

  12. #12
    brynn brynn @brynn

    For a quick reality check, there are feature requests which have been waiting for literally years, and probably will never be realized.Β  This is the first time I've seen a feature request answered in less than a day (in 12 years of participating in this community).

    Just so other users don't get the wrong ideaΒ  πŸ˜‰

  13. #13
    Martin Owens Martin Owens @doctormoπŸŒΉβš–πŸ§€

    @brynn features are super random. This feature was only possible because a route to it was obvious and the code changes were minimal.

  14. #14
    Tyler Durden Tyler Durden @TylerDurdenβš–

    This is great!Β πŸ‘πŸ‘

  15. #15
    SilvioManuel SilvioManuel @SilvioManuel

    Martin, you're a wizard!

  16. #16
    Martin Owens Martin Owens @doctormoπŸŒΉβš–πŸ§€
    ✌

    @SilvioManuel can you try this build https://alpha.inkscape.org/snapshots/latest_master_x64.html

    It's for windows 64bit which should be your computer.

  17. #17
    Maren Hachmann Maren Hachmann @Moiniβš–

    @doctormo I've used your gif for the release notes here: https://wiki.inkscape.org/wiki/index.php?title=Release_notes/1.0#Tools

  18. #18
    Martin Owens Martin Owens @doctormoπŸŒΉβš–πŸ§€

    This looks really nice. Thanks Maren!

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Is there a way to draw rectangles by 3 points?