sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Locked] 2D Toolset - Use Newer Version Link

    Scheduled Pinned Locked Moved Plugins
    56 Posts 20 Posters 88.6k Views 20 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TIGT Offline
      TIG Moderator
      last edited by

      Today's update available here http://forums.sketchucation.com/viewtopic.php?p=180259#p180259

      Main changes are:

      Return/Enter now ends the Polyline and PolylineCurve Tools and draws geometry.
      Esc during the Tool now undoes the last Polyline and PolylineCurve pieces draw up to then.
      PolyLineCurve Tool now draws both looped and open-ended curves, BUT if they branch - e.g. you draw a loop back onto one of the set's earlier edges mid-point - then it'll make the best curve it can out of what it has, and the rest will stay as loose lines.
      Default number of segments for Arc and Circle now = 18, this can be set different for an Arc and a Circle, AND any changed values a remembered during that session in that model.
      Arc now draws a ghost-arc as you stretch it out.
      Circle now draws a ghost-circle as you stretch it out.

      Hopefully this will address some of the errors reported... 😒

      On the other requests:

      A Rectangle with Rounded Corners

      • I'd use the Rectangle Tool and then use a 'fillet' or 'rounded-corners' tool to round its corners (there are several available - I use Ktools's 'Make-L'tool); or you could use the main Arc tool and draw tangential arcs at the corners - you can use Entity-Info to change its radius etc - then erase the unwanted bits ?
        I don't know of an tool to do it right off. I've no plans to make one - sorry...

      A Double-Line Tool

      • Didier Bur has already made one - it works fine in 2D too - dline.zip on http://www.crai.archi.fr/RubyLibraryDepot/Ruby/em_geo_page.htm

      An Ellipse Tool

      • Didier Bur has already made one - it works fine in 2D too - Ellipse.zip on http://www.crai.archi.fr/RubyLibraryDepot/Ruby/en_geo_page.htm

      A Polygon Tool with set side dimension.

      • You could make a Polygon using the main Polygon tool of the 2D Circle tool with required number of edges/segments set, but that has a given radius rather than a side length. You also need to rotate it to the orientation angle you want. To make it a given side length draw a Polygon and then immediately group it. Edit that group and use the Tapemeasure tool and pick two vertices of an edge; now type in the size you want as units (e.g. 500mm) and it'll ask you if you want to scale everything, say 'Yes' - remember that this scaling is limited to the current active_entities, so don't panic - the polygon inside the group will now have its edges at the desired length: exit the group and explode it... I have a Polygon.side=1234 method that I might publish one day...

      Any other ideas ? ❓

      TIG

      1 Reply Last reply Reply Quote 0
      • B Offline
        Ben Ritter
        last edited by

        TIG, thank you.

        1 Reply Last reply Reply Quote 0
        • EarthMoverE Offline
          EarthMover
          last edited by

          I'd be interested in seeing some 2D boolean functions added. Standard add, subtract and perhaps one that will allow you to draw a bunch of overlapping shapes and it will remove all the interior lines and just leave the perimeter shape. Essentially automating the intersect and removal of unwanted lines to create secondary shapes.

          Is it possible to toggle the tools to draw CLines by hitting CTRL? Similar to how Fredo did with TOS. Not so important for the line tools but it would be a helpful feature for the Arc and Circle tools.

          Another thing I was wondering is if you could have a tool that would define the height of Z. If you click on a point that is, let's say, 96" up on the Z, then all the tools would draw flat on that Z height. This would be nice for drawing out 2nd story floorplans and such.

          Also, with the polyline curve tool....is there a way you could then translate the series of polylines into a flowing set of Arcs? Every other vertex would define the span of the arc and the middle verticies would define the bulge. Similar to the technique for your 2D arc tool, but just allowing you to draw out a series of polylines and having it translate into to tangent arcs. Similar to how you can convert polylines to curve splines in Fredo's Bezier tools. Just a thought.

          Thanks again TIG!

          3D Artist at Clearstory 3D Imaging
          Guide Tool at Winning With Sketchup
          Content Creator at Skapeup

          1 Reply Last reply Reply Quote 0
          • B Offline
            Ben Ritter
            last edited by

            TIG,

            The hatch dialog doesn't appear for me.

            Ben

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              Hi TIG,

              Don't assume the variable $exStrings is defined. It is for most people, but not for all. It is originally defined in one of the rubies that came with SketchUp - but not everyone loads those.

              Hi

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                @jim said:

                Hi TIG,
                Don't assume the variable $exStrings is defined. It is for most people, but not for all. It is originally defined in one of the rubies that came with SketchUp - but not everyone loads those.

                Point taken.
                I just quickly clobbered these tools together from stuff mainly based on the linetool ruby that had it in... I'll trap it in the next release...

                TIG

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  Here's another update - with potential $exStrings problem circumvented...
                  http://forums.sketchucation.com/viewtopic.php?p=180259#p180259

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    @ben ritter said:

                    TIG,
                    The hatch dialog doesn't appear for me.
                    Ben

                    Have you put the '2DtoolsIcons' folder into the Plugins folder. In that there should be a folder called 'Hatching' containing the jpgs ? What does the Ruby Console say when it fails ?

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      Here's this morning's update with improve undo for 2D polyline/curves etc...
                      http://forums.sketchucation.com/viewtopic.php?p=180259#p180259

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • honoluludesktopH Offline
                        honoluludesktop
                        last edited by

                        TIG, So far so good, NO Great! If you get around to expanding the software set, how about triming; both, to the intersection of, and in reference from 🙂

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          anglaret
                          last edited by

                          Thanks TIG,
                          it is very interesting that somebody care about 2D.I work a lot in 2d
                          The hatch tool is very nice

                          I have a tedious problem with drawing doors, and I remember asking Google
                          to put in SU the "pie" tool that exists in Layout:
                          click on a point, go to the distance you like, click again than you can draw
                          a pie : radius is fixed, and 2 sides of the pie are drawn

                          In 3 clicks you draw a door
                          Marc

                          1 Reply Last reply Reply Quote 0
                          • EdsonE Offline
                            Edson
                            last edited by

                            hi tig,

                            it is not working for me. i followed your instructions but something is not right. can you help me? what do you mean by "The 2D#.rb needs to load before the others to make the sub-menu and toolbar..."? what can i do for it to happen? thanks.

                            2 images attached: one with the error message i get, the other showing the files i heve on my plugins folder.


                            2Dset_1.png


                            2Dset_plugins.png

                            edson mahfuz, architect| porto alegre • brasil
                            http://www.mahfuz.arq.br

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              Edson

                              You are Mac ? I'll investigate... I doesn't like the status_text ??? Seems that if first part is in () the second after the ',' confuses it ! BUT not on a PC - I'll ensure the update avoids that possibility...

                              I am working on v2.0 which is quite different, so that might avoid the problem - perhaps needs a day or two...

                              Please hang in there... 😄

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                anglaret
                                last edited by

                                Tig
                                I would be more precise
                                In Layout tools/arc/pie; is a brillant and simple tool that draw doors from above
                                I would be very very grateful for that tool in SU

                                Marc

                                1 Reply Last reply Reply Quote 0
                                • EdsonE Offline
                                  Edson
                                  last edited by

                                  @tig said:

                                  Edson

                                  You are Mac ? I'll investigate... I doesn't like the status_text ??? Seems that if first part is in () the second after the ',' confuses it ! BUT not on a PC - I'll ensure the update avoids that possibility...

                                  I am working on v2.0 which is quite different, so that might avoid the problem - perhaps needs a day or two...

                                  Please hang in there... 😄

                                  yes, tig, i am on mac. thanks for looking into this. this promises to be one more of your greatly useful plugins.

                                  edson mahfuz, architect| porto alegre • brasil
                                  http://www.mahfuz.arq.br

                                  1 Reply Last reply Reply Quote 0
                                  • TIGT Offline
                                    TIG Moderator
                                    last edited by

                                    @anglaret said:

                                    Tig
                                    I would be more precise
                                    In Layout tools/arc/pie; is a brillant and simple tool that draw doors from above
                                    I would be very very grateful for that tool in SU

                                    Marc

                                    I intend that they'll be something like that in v2... ➡

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • honoluludesktopH Offline
                                      honoluludesktop
                                      last edited by

                                      TIG, Out of curosity, how much time did it take you do do the plugin? Did you have templates to work from? As a retired amature programmer (pre OOPS), I find this kind of coding compact. Maybe I could learn something about ruby if you documented a little:-), or maybe I am just a old dog that can't:-( Good work.

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        I took a few hours to get the first code out - look at the early exchanges with Jim -I based it on several pre-existing ideas... it then grew 'like topsy'... So far it's taken a couple of days to get where we are, on and off - I was away this weekend 'resting' and had T some better ideas for v2 that will be out soonest...
                                        💭

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          Fletch
                                          last edited by

                                          TIG,
                                          I have wished for these tools since like the first day of using SketchUp!
                                          Now SU can be an illustration tool too (I use it for this sometimes, logo design, etc.)
                                          But now also I can trace these freaky CAD plans that look like they are flat but they are not, etc.

                                          THANKS A MILLION... you are a legend in your own time.

                                          Fletch
                                          Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                                          1 Reply Last reply Reply Quote 0
                                          • utilerU Offline
                                            utiler
                                            last edited by

                                            Hi TIG, downloaded the latest 2Dtoolset and having a play....
                                            I noticed a few things that you may wish to review:

                                            1. 2D Polyline doesn't acknowledge when it is on an axis. [change to green or red and tooltip to say "On Green axis"]
                                            2. 2D Arc doesn't reference axises at all.
                                            3. 2D circle doesn't acknowledge when it is on an axis either. [as per 2D polyline]

                                            Wishlist

                                            1. Arc to recognize tangents
                                            2. Can 2D rectangle produce a closed entity?

                                            Well done, mate, this is a great addition to GSU!!!

                                            purpose/expression/purpose/....

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement