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

    [Plugin] 2D Tools

    Scheduled Pinned Locked Moved Plugins
    785 Posts 178 Posters 462.6k Views 177 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.
    • EarthMoverE Offline
      EarthMover
      last edited by

      Good to hear that that there is no Arc extend (yet!). Looking forward to that addition. I have been using this script for so many things. Works awesome for drawing contour lines. Set an elevation and just draw without worrying about inferencing.

      If no one else does, I'd be happy to put together a visual walkthrough of the plugin and the different tools available.

      Many 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
      • JClementsJ Offline
        JClements
        last edited by

        EarthMover:

        Glad it is working for you for doing elevation work. Same here!

        John | Illustrator | Beaverton, Oregon

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          @unknownuser said:

          If no one else does, I'd be happy to put together a visual walkthrough of the plugin and the different tools available.

          Cool! You can make that! ☀

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • mitcorbM Offline
            mitcorb
            last edited by

            Hi, TIG:
            2d hatching is still not working for me in v3.3.
            Still getting the "cancelled 2d hatching" phrase in the ruby console.

            I extracted the zip file and overwrote the previous version. I did not delete any files, first.
            If 3.3 was supposed to correct this, it did not work for me.
            Thanks,
            mitcorb

            I take the slow, deliberate approach in my aimless wandering.

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

              @mitcorb said:

              Hi, TIG:
              2d hatching is still not working for me in v3.3.
              Still getting the "cancelled 2d hatching" phrase in the ruby console.
              I extracted the zip file and overwrote the previous version. I did not delete any files, first.
              If 3.3 was supposed to correct this, it did not work for me.
              Thanks,
              mitcorb

              I hoped it would fix it when I introduced relative paths 😢 : please paste these lines into the Ruby Console one at a time, and report what happens: use the first line [6] or second line [7] if that's your version...

              folder="C:/Program Files/Google/Google SketchUp 6/Plugins/2Dtools/Hatching/" folder="C:/Program Files/Google/Google SketchUp 7/Plugins/2Dtools/Hatching/"

              then these two lines...

              file1=Dir[folder+"*.jpg"].last UI.openpanel("Choose HATCHING...",folder,file1)

              If you have a different file path to the Hatching folder adjust the first line to suit - note it's a / NOT a \ in text...

              Report any messages or what happens at each step - like a dialog opening ! [I hope]

              We will fix this... 🤓

              TIG

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

                Here's v3.4 http://forums.sketchucation.com/viewtopic.php?p=185760#p185760

                v3.4 20091010 Adjust Tool now allows 'Lone Arc Extension' as well as Trim etc.
                NOTE: This Lone Arc Extend Mode is in its first beta release and might be prone to error – please save before using and feedback any details that will improve its development...

                TIG

                1 Reply Last reply Reply Quote 0
                • ArcA Offline
                  Arc
                  last edited by

                  [quote="TIG"]Here's v3.4 http://forums.sketchucation.com/viewtopic.php?p=185760#p185760

                  2D Text, it's not on my set z-plane.

                  1 Reply Last reply Reply Quote 0
                  • GaieusG Offline
                    Gaieus
                    last edited by

                    @tig said:

                    ...If you really must have it snap to the Z-plane them I can easily do you a personalized version that does so... ❓

                    That's quite a generous offer, TIG! 😉

                    Gai...

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

                      @arc said:

                      @tig said:

                      Here's v3.4 http://forums.sketchucation.com/viewtopic.php?p=185760#p185760
                      2D Text, it's not on my set z-plane.

                      2D Text was not made to be fixed onto the Z-plane because so many asked for more flexibility in placing it - 2D Text has uses beyond pure 2D drawing - like the 2D Fillet Tool. However, it does snap to the horizontal/face...

                      If there is enough 'reverse pressure' to get it to snap all 2D Text to the Z-plane I'll change it - it's no big deal - much of the code is in there, it's just 'disabled'... ☀

                      If you really must have it snap to the Z-plane then I can easily do you a personalized version that does so... ❓

                      TIG

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

                        @gaieus said:

                        @tig said:

                        ...If you really must have it snap to the Z-plane then I can easily do you a personalized version that does so... ❓

                        That's quite a generous offer, TIG! 😉

                        Not so generous... most of the code is already in there but disabled/unused... I just need to 'free' it... 🤓

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • mitcorbM Offline
                          mitcorb
                          last edited by

                          TIG:
                          I copy/pasted as you instructed, with no apparent reaction in the console at each step. Then I drew two overlapping 2d rectangles, applied 2d faces to each. Then I tried to activate the 2d hatching tool and got the "cancelled" statement.

                          EDIT: The attachment hopefully shows the console open and the inputs. If not, I will do a jpg.


                          2dhatchinguploadfile.skp


                          2dhatchinguploadfile.jpg


                          2dhatchinguploadfile.JPG

                          I take the slow, deliberate approach in my aimless wandering.

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

                            No Console in the image. Please try again...
                            I tried your Model and it Hatches OK for me... so must be something in your setup...

                            When you pasted the line UI.openpanel... what happened ? Did it open a file browser ?
                            If it did then if you selected something and hit OK what did it then say in the Console ?
                            Can you try typing UI.openpanel in the Console - you should get the last file browser you had opened again...

                            Most confusing... 😕

                            EDIT: The Console appeared on the second image...
                            You don't seem to have typed the last of the lines I asked you to -
                            UI.openpanel("Choose HATCHING...",folder,file1)

                            Please DO NOT try to run the 2D Hatching Tool ! I'm trying to check your setup BEFORE we start looking at other things... Firstly we need to check that the UI.openpanel is working OK...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • mitcorbM Offline
                              mitcorb
                              last edited by

                              TIG:
                              No file browser opened. I will try again.
                              (I am not fluent with image capturing and posting, so I had to try again. The process is so opaque, that is, you gotta trust that the results will be favorable.)

                              EDIT: see attachment.
                              I typed the statement into the line input box. I thought there was a required space before the parentheses. That is why I got the warning.
                              But in each case I got the word "nil".

                              EDIT2: for your info, I verified that the hatching file has all of the jpg content.


                              2dhatchinguploadfile2.JPG

                              I take the slow, deliberate approach in my aimless wandering.

                              1 Reply Last reply Reply Quote 0
                              • JClementsJ Offline
                                JClements
                                last edited by

                                My preference would be to have the text sensitive to the current Z-plane.

                                Perhaps you could allow its present behavior through Alt-clicking the toolbar icon? ... Or the user could use your other text script.

                                ============================

                                Tried the updated extend tool. When I tried it on an arc and when I could get it to work, the arc was extended through and beyond a target edge. Using with line segments, it couldn't detect the line to extend when trying to select it. Many times I'd get an hour glass and have to shut down SU 7.1.

                                ================================

                                A combination of the line, tab input, and radius tools makes producing pipe and elbow centerlines easy.
                                I suppose Pipe-Along-Pipe could be implimented into the toolbar and apply it to a centerline using a method similar to that used for your 2D Line Style tool 😒
                                easy centerlines.png

                                John | Illustrator | Beaverton, Oregon

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

                                  @mitcorb said:

                                  TIG:
                                  No file browser opened. I will try again.
                                  (I am not fluent with image capturing and posting, so I had to try again. The process is so opaque, that is, you gotta trust that the results will be favorable.)

                                  EDIT: see attachment.
                                  I typed the statement into the line input box. I thought there was a required space before the parentheses. That is why I got the warning.
                                  But in each case I got the word "nil".

                                  EDIT2: for your info, I verified that the hatching file has all of the jpg content.

                                  No <space> before the ( ). BUT it's failing anyway.
                                  What happens if you copy/paste just the text UI.openpanel into the Console - still no open_panel ?

                                  Seems your Sketchup isn't opening a file_open_dialog like it should ??? 😕

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • JClementsJ Offline
                                    JClements
                                    last edited by

                                    I am not sure if the file is corrupted or if there is a bug in Ruby. It was made by cutting and pasting geometry from antoher file which had a half dozen imported DWG files.

                                    Any elevation readings taken for geometry below z=0 are wrong (using either the 2d Set Z-Plane tool or Robin Hill's, Height.rb). What should be -26' shows as -25', what should be -9.5' shows as -9.0'

                                    Stranger still, is that Robin's script adds in two dashes for a negative value. It has never done that before.
                                    If I create a new file with new geometry then both Robin's script and 2d Set Z-Plane tool work correctly.

                                    Any guess as to what is going on?


                                    Elevation Bug.skp


                                    height.rb

                                    John | Illustrator | Beaverton, Oregon

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

                                      I think the bug is in Sketchup and the use of 'Engineering' units [always feet].
                                      If you change to 'Decimal' units [feet] it works fine.
                                      Any other units format also works properly too...
                                      It's as if with Engineering Feet it does a 'round' to an integer and does a double negative to boot !
                                      There's nothing wrong with the SKP file itself - indeed it's the same in any new SKP that's set to have Engineering Feet as its units and -ve Z values taken from the point are reported wrongly as a length/length.to_s.
                                      The Tools are blameless too...

                                      Bug report for v7.1 ? 😢

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • W Offline
                                        watkins
                                        last edited by

                                        It would be nice to see a few examples of how people are using 2D Tools in their own work.

                                        Regards,
                                        Bob

                                        1 Reply Last reply Reply Quote 0
                                        • mitcorbM Offline
                                          mitcorb
                                          last edited by

                                          TIG:
                                          UI.openpanel called up the folder My Documents after typing into the console.
                                          When I cancelled the call, the nil showed on the second line of the following insert. Then I typed in the other arguments- carefully- and you can see what returned.
                                          (This is Sketchup 6free, last update, XPHomeSP3)

                                          UI.openpanel
                                          nil
                                          folder="C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/"
                                          C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/
                                          file1=Dir[folder+"*.jpg"].last
                                          C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/PATT__SOLID.jpg
                                          UI.openpanel(Choose HATCHING...",folder,file1)
                                          (eval):149: warning: parenthesize argument(s) for future version
                                          Error: #<SyntaxError: (eval):149: compile error
                                          (eval):149: unterminated string meets end of file
                                          (eval):149: syntax error
                                          UI.openpanel(Choose HATCHING...",folder,file1)
                                          ^>
                                          (eval):149

                                          Thanks,
                                          mitcorb

                                          EDIT: I see I left out a " before Choose HATCHING. When I inserted each argument with corrected punctuation, I got "nil" at the end.

                                          I take the slow, deliberate approach in my aimless wandering.

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            DIEGO-RODRIGUEZ
                                            last edited by

                                            Hello TIG.
                                            I tried 2dtool and found the following errors.
                                            The lines do not extend to circles and arcs
                                            The arches, extend one end. the other end is not extended.
                                            The line of destiny, color cyan, turns off in areas where it is intersected by another line

                                            [flash=425,344:x5dl6kqm]http://www.youtube.com/v/mI37VX17nqk[/flash:x5dl6kqm]

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 39
                                            • 40
                                            • 7 / 40
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement