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.
    • R Offline
      rickgraham
      last edited by

      Okay, now I DO have a legitimate question for TIG on this.

      Is there any way I can take the 2D Tools Line that I grouped and have it drape onto a surface while keeping its thickness and linetype?

      I have a weird request that the client wants their property line shown on the model. Right now I have it hovering just above the surface, but since the surface has a good amount of slope, at one end the line is hugging just above the surface, while at the other end it is perhaps 50 off the surface. It looks dumb like that anyways.

      So, I tried to use the sandbox tools drape and it didn't do anything. πŸ˜•

      Thanks TIG for yet another steller plugin. And I happened upon this AFTER I bought the dashed lines from smustard 😐 Oh well, I'll find a use for that one too. πŸ˜„

      Rick

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

        Answering two questions at one here...

        It works on Macs - ensure all of the required files and files-in-folders are in the right place - Mac Plugins location can be tricky - make sure you do it right - there are other threads about this.........

        If you 'draw' Lines over a 3D surface then 2D Line-Style WILL work - it is not limited to 2D - BUT you might want to use a tool like Tools-on-Surface by Fredo to make the 'draped' lines - or use the Sandbox Tools ???

        πŸ€“

        TIG

        1 Reply Last reply Reply Quote 0
        • D Offline
          dedmin
          last edited by

          The same rectangle filleted with 2D Fillet and with the arc tool changed the size - arcs with the same number of segments and the same radius?

          2010-07-05_161656.jpg


          fillet.skp

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

            dedmin

            Set you 0.0000 as high as it'll go and see what the error is - measure the distances with the tapemeasure rather than dimensions - I can't see what the issue might be ?
            Try doing it on a rectangular face draw on the center of a larger face and see if it's the same ...

            I've no idea what it might be.... πŸ˜•

            TIG

            1 Reply Last reply Reply Quote 0
            • D Offline
              dedmin
              last edited by

              Tried again and now the height changed and the number of segments is 17 even if I typed 18s. Opened the SketchUp's file in SpaceClaim :

              2010-07-05_172511.jpg

              1 Reply Last reply Reply Quote 0
              • D Offline
                dedmin
                last edited by

                Now I did it at the top view and everything is fine - the first example was at the front view! In both cases - parallel projection. πŸ˜’

                1 Reply Last reply Reply Quote 0
                • T Offline
                  theark
                  last edited by

                  Many thanks.

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

                    Dear dedmin,

                    Are you able to import SU files into SpaceClaim easily? What process steps do you use?

                    I have been thinking of switching to SpaceClaim from Inventor.

                    Regards,
                    Bob

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dedmin
                      last edited by

                      SpaceClaim opens SketchUP's files directly and also exports in .skp format. Amazing program - SketchUP on steroids! Inventor is more powerful, but to bloated, heavy,slow and $$$$! There is a demo You can download and try and a lot of video tutorials - http://www2.spaceclaim.com/forum/files/9/default.aspx. Watch them first to see how different is this software! See this video for SketchUP integration:

                      http://www2.spaceclaim.com/learnmorenow/product_videos.aspx?v=2009_plus_sketchup.flv

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

                        Dear dedmin,

                        Thanks for the quick reply. I work at a university in the UK, and so I am entitled to an academic copy, which should make the transition cost effective. Are you UK based?

                        Kind regards,
                        Bob

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          dedmin
                          last edited by

                          No - Bulgaria. You can join here - http://www.spaceclaiming.com/forum

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dedmin
                            last edited by

                            @watkins said:

                            Dear dedmin,

                            Thanks for the quick reply. I work at a university in the UK, and so I am entitled to an academic copy, which should make the transition cost effective. Are you UK based?

                            Kind regards,
                            Bob

                            Yes - very cost effective - http://www.novedge.com/products/3148 β˜€
                            Be warned that this piece is like SketchUP - You always come back to it! πŸ˜†

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              Michaelv
                              last edited by

                              @tig said:

                              @oxer said:

                              Hello!!
                              The first Thanks! for your marvelous plugin. I'm Spanish user of SUp, i have seen that the last version include Spanish translation, my problem is that if i push on the help icon into SUp, no it appears the help, i don't know why, i work in Mac, in the 2Dtools folder there is a file with this name "~$toolsHelp.htm" its contents is: "TIGTIG The Grants$(^±€ï˜|ì*,%"
                              Can be the problem this? is a problem in the characters codification in Mac?
                              Waiting your answer, advanced Thanks!!

                              Somehow a 'rogue' htm temporary file has got left in the zip file [unnoticed] - however, it's not needed at all and its existence shouldn't cause a problem. There should also be a file called 2DToolsHelpES.htm and a matching folder of images etc, this is the Spanish help file that should load for you on clicking the help-button or picking the equivalent menu item. I've reattached it all of them in a zip file, to see if it helps.
                              Put everything [htm and folder] into the ../Plugins/2DTools/ folder
                              Can you open the Spanish htm file 'manually' - double-click on it - when outside of SketchUp ?
                              If you cannot then there is something that is not working properly in the 'help' file lookup.
                              Can you also copy/paste this line of text into the Ruby Console and report back what the result is...
                              Sketchup.get_locale.upcase
                              It will be fixable...

                              [attachment=0:1g18rgvi]<!-- ia0 -->PutInto2DToolsFolder.zip<!-- ia0 -->[/attachment:1g18rgvi]

                              Hello TIG Thanks very much for all your stuff it's awesome. I've been using the 2D for a while no major issues.
                              SIncidently though I have the same problem with the help file on Mac, Did the extraction many times, tools work mostly (except toggles, more below) but help doesn't.
                              File (2Dtoolshelp.htm)can be opened separately (the one in the plugins, I use the EN one)
                              Pluging your command into the ruby console gives me EN-US

                              More troubleshooting info: clicking the help button doesn't do anything, no info in the help console. The button highlights but doesn't turn grey and any other button (tool) remains active.

                              Now another very minor issue I have is that the CTRL toggle doesn't work (it's a MAC that's why). For example for the arc tool: I can't get anything to change but select 1st pt, 2nd pt and then circle circumference. Command and option (alt equivalent) do nothing as expected, and control doesn't toggle.
                              Control does this: If you start with an arc (no other object) and keep it pressed it prevents you from clicking point until you release it, then it does nothing. As toggle it doesn't work either.
                              If you have already an object (a line for example) and clicking on it, it brings up a contextual menu (the entity info menu, same as right click)
                              Alt toggle works fine on other tools.
                              The undo button does weird things too on entities. It erases the first one or few and then either it adds points or it just stop erasing.

                              Also incidentally, no menu access, only the tool bar. ( I don't know if there is supposed to be a menu access, just in case I mention it)
                              All these are minor issues, as I"m really happy with everything as it is, so it's just for feedback.

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

                                I know why the MAC Help doesn't open.

                                If you put this attached file into the ../Plugins/2Dtools/ folder in place of the earlier one it should open Help on a Mac... 2D#loader.rb I've also temporarily added this updated file to the first item in this thread...

                                2D Tools sub-menu is to be found under the Draw menu...

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  Michaelv
                                  last edited by

                                  @tig said:

                                  I know why the MAC Help doesn't open.

                                  If you put this attached file into the ../Plugins/2Dtools/ folder in place of the earlier one it should open Help on a Mac... [attachment=0:36uy3x3m]<!-- ia0 -->2D#loader.rb<!-- ia0 -->[/attachment:36uy3x3m] I've also temporarily added this updated file to the first item in this thread...

                                  2D Tools sub-menu is to be found under the Draw menu...

                                  It works like a charm, thank you Sir! Sorry for the submenu, I can't believe I didn't find it before, I always used he toolbar so never looked for it, it's only until you mentionned whether help could be accessed from the submenu that I tried to find it.

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    Michaelv
                                    last edited by

                                    OK I've solved the problem of the control key on Macs. Into the ruby programs that correspond to tools that have a ctrl modifier, I changed all tests for VK_CONTROL into VK_COMMAND, I changed the display to cmd too.
                                    I don't have stuff to zip but I'll gladly send you the modified files through email or whatever you'd like.
                                    Thanks TIG

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

                                      So are you saying id I change the '..==VK_CONTROL' tests to '..==VK_CONTROL or ..==VK_COMMAND' it'll work on both PC AND MAC?
                                      Please post or PM the files
                                      I need to prepare an update... πŸ˜’

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • thomthomT Offline
                                        thomthom
                                        last edited by

                                        TIG:
                                        Use none of them. Use the constants listed in the Tool class' description.
                                        http://code.google.com/apis/sketchup/docs/ourdoc/tool.html

                                        @unknownuser said:

                                        CONSTRAIN_MODIFIER_KEY = Shift Key
                                        CONSTRAIN_MODIFIER_MASK = Shift Key
                                        COPY_MODIFIER_KEY = Menu on Mac, Ctrl on PC
                                        COPY_MODIFIER_MASK = Alt on Mac, Ctrl on PC
                                        ALT_MODIFIER_KEY = Command on Mac, Menu on PC
                                        ALT_MODIFIER_MASK = Command on Mac, Alt on PC

                                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          Michaelv
                                          last edited by

                                          @tig said:

                                          So are you saying id I change the '..==VK_CONTROL' tests to '..==VK_CONTROL or ..==VK_COMMAND' it'll work on both PC AND MAC?
                                          Please post or PM the files
                                          I need to prepare an update... πŸ˜’

                                          Well here is the thing, the control command on MAC should work but it didn't and I don't know why, sometimes it is said and written that the control function on PC is the command function on MAC, it didn't work in this case either.
                                          So I just substituted the Command key to the control key and left the ALT alone (which is option on MAC).
                                          I'm not sure what the VK_COMMAND corresponding key is on PC if any (maybe the window icon key).
                                          For the sake of information here is some I found: http://www.roughlydrafted.com/2007/08/11/how-apple-keyboards-lost-a-logo-and-windows-pcs-gained-one/
                                          So the "or" line may work but may introduce a second key on PC which may not be desirable.

                                          As for the generic commands that Thomthom listed they will work but beware. I thought about using those too, but in my particular case I work on a laptop and I don't have a "menu" key AFAIK, so again it's not as universal as they'd like.
                                          Copy_modifier_mask and Alt_modifier_mask would work fine here it seems but they reverse the use (ctrl and alt)
                                          As you saw from the story above the control key is really the command key on mac keyboard so I found it just simpler and more intuitive to modify all (text and variables), where option/alt remains such and command becomes the more global modifier. Much more logical and clean as the text match too.

                                          Files coming later tonight.

                                          On the 2D line, alt could be a 3 way toggle too but that's more work.

                                          The link that Thomthom posted has all the variables mentioned (VK_COMMAND, etc..) lower in the text. They claim it to be universal Mac/PC but I'm not sure. VK-ALT for sure (Option/Alt key on my keyboard)

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

                                            I can set a test for a PC or Mac OS and then use the appropiate VK_... πŸ˜‰

                                            TIG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 39
                                            • 40
                                            • 12 / 40
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement