sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🔌 Easy Offset | Offset selected faces in SketchUp in positive and negative offsets. Download

    [Plugin] 2D Tools

    已排程 已置頂 已鎖定 已移動 Plugins
    785 貼文 178 Posters 496.4k 瀏覽 177 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • JClementsJ 離線
      JClements
      最後由 編輯

      Hi TIG:

      Thank you for looking at the file. I did further test and similar things happened with 7.0 and 6.0.
      I opened previous revision levels (backups) of the file and when I changed the units to Engineering, the error popped up. I thinking it could be a rounding error, but not so sure now.

      I will send the file to SU folks.

      John | Illustrator | Beaverton, Oregon

      1 條回覆 最後回覆 回覆 引用 0
      • mitcorbM 離線
        mitcorb
        最後由 編輯

        TIG:
        Here are the results on the double slash input:
        (eval):149
        folder="C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching\"
        C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching
        UI.openpanel("Choose HATCHING...",folder,file1)
        Error: #<NameError: (eval):149: undefined local variable or method `file1' for main:Object>
        (eval):149
        ---I had to insert a " in front of the word Choose, because I got a syntax error comment, and noticed that you may have copy/pasted my mistake in your new instructions.---

        Second results: since first did not work:
        folder="C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/"
        C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/
        UI.openpanel("Choose HATCHING...",folder,file1)
        Error: #<NameError: (eval):149: undefined local variable or method `file1' for main:Object>
        (eval):149
        ---Again corrected for the missing "---

        Lemme know,
        mitcorb

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

        1 條回覆 最後回覆 回覆 引用 0
        • TIGT 離線
          TIG Moderator
          最後由 編輯

          mitcorb
          Another slant... Copy/Paste these 3 lines of red text into the Ruby Console and see what happens...
          folder="C:\\Program Files\\Google\\Google Sketchup 6\\Plugins\\2Dtools\\Hatching\\" file1="*.jpg" UI.openpanel("Choose HATCHING...",folder,file1)
          If nothing works then change them to these 3 and try again:
          folder="C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/" file1="*.jpg" UI.openpanel("Choose HATCHING...",folder,file1)
          I think it's something to do with SUp v Ruby syntax changed in the updates of Versions... We will sort this 🤓

          TIG

          1 條回覆 最後回覆 回覆 引用 0
          • TIGT 離線
            TIG Moderator
            最後由 編輯

            @jclements said:

            Hi TIG:

            Thank you for looking at the file. I did further test and similar things happened with 7.0 and 6.0.
            I opened previous revision levels (backups) of the file and when I changed the units to Engineering, the error popped up. I thinking it could be a rounding error, but not so sure now.

            I will send the file to SU folks.

            It's not the file as it happens with all models with -ve Z in Engineering Units... Seems as far back as v6 ! It's not the tools, as you can reproduce the effect by trying to get set the -ve Z to_s in the Console and you'll get a rounded -- version !!!

            TIG

            1 條回覆 最後回覆 回覆 引用 0
            • TIGT 離線
              TIG Moderator
              最後由 編輯

              We have both messed up... I copied the text from yours - hence the missing "...
              You failed to set file1= - you only pasted line 1 and 3 - you missed line 2 !

              Please try again with the " and all three lines.
              One defines the folder, two the file and three is the UI.openpanel command...

              TIG

              1 條回覆 最後回覆 回覆 引用 0
              • mitcorbM 離線
                mitcorb
                最後由 編輯

                OK, TIG:
                I am at a different machine right now.
                I will retry in about 3-4 hours at the one with the problem.

                Interesting! I loaded 2dtools at my office on SU6pro. Still cannot get hatching to proceed. Is there something I might be doing wrong? Or is there possibly some other plugin or extension interrupting this one?

                Oh well, let's get the issue resolved at the first location.

                mitcorb

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

                1 條回覆 最後回覆 回覆 引用 0
                • honoluludesktopH 離線
                  honoluludesktop
                  最後由 編輯

                  Hi TIG, On my system, I am still having problems with flashing shadows under SU's pull down menus while 2DFreehand is the active selection. SU hangs if I try to close SU while this command is active, but if I change the selection, I am able to exit SU. The problem persist even I removed every other plugin, except SU.rb, and 2D#.rb.

                  I do not have this problem at home, so its not the ruby that is at fault. Any ideas, anyone, as to where on my system I can look for a solution? I have tried disabling WinXP's menu shadow, and unchecking SU's OpenGL preferences with no effect.

                  1 條回覆 最後回覆 回覆 引用 0
                  • mitcorbM 離線
                    mitcorb
                    最後由 編輯

                    Ok, TIG:
                    I am at the machine on which I first had the problem.

                    The double backslash method pulled up the HATCHING folder this time, with contents. But see the results:

                    folder="C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching\"
                    C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching
                    file1="*.jpg"
                    *.jpg
                    UI.openpanel("Choose HATCHING...",folder,file1)
                    nil
                    -----I did not change anything in the console display.

                    I will now run the second set with the forward slashes just to be thorough:

                    folder="C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/"
                    C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/
                    file1="*.jpg"
                    *.jpg
                    UI.openpanel("Choose HATCHING...",folder,file1)
                    nil
                    ---- and running it in this form did NOT call up the HATCHING folder, or anything else.

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

                    1 條回覆 最後回覆 回覆 引用 0
                    • TIGT 離線
                      TIG Moderator
                      最後由 編輯

                      @mitcorb said:

                      Ok, TIG:
                      I am at the machine on which I first had the problem.
                      The double backslash method pulled up the HATCHING folder this time, with contents. But see the results:

                      folder="C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching\"
                      C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching
                      file1="*.jpg"
                      *.jpg
                      UI.openpanel("Choose HATCHING...",folder,file1)
                      nil
                      -----I did not change anything in the console display.
                      I will now run the second set with the forward slashes just to be thorough:

                      folder="C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/"
                      C:/Program Files/Google/Google Sketchup 6/Plugins/2Dtools/Hatching/
                      file1="*.jpg"
                      *.jpg
                      UI.openpanel("Choose HATCHING...",folder,file1)
                      nil
                      ---- and running it in this form did NOT call up the HATCHING folder, or anything else.

                      We will find what's up...
                      Do I understand that the \ method worked ? If not then please try these 3 lines [they have the end \ or / removed from the folder path...]
                      folder="C:\\Program Files\\Google\\Google Sketchup 6\\Plugins\\2Dtools\\Hatching" file1="*.jpg" UI.openpanel("Choose HATCHING...",folder,file1)
                      and this alternative...
                      folder="C:/Program Files\/Google/Google Sketchup 6/Plugins/2Dtools/Hatching" file1="*.jpg" UI.openpanel("Choose HATCHING...",folder,file1)

                      We will prevail !

                      When you get the folder open what do you get if you select afile and then press OK, then do it another time and press Cancel...

                      TIG

                      1 條回覆 最後回覆 回覆 引用 0
                      • mitcorbM 離線
                        mitcorb
                        最後由 編輯

                        Hi, TIG:
                        Here are the contents of the console using the double backslash input, and selection of ANGLE PATTERN. The Hatching folder comes up with the patterns displayed in list form rather than thumbnail form, in this case.


                        folder="C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching\"
                        C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching
                        file1="*.jpg"
                        *.jpg
                        UI.openpanel("Choose HATCHING...",folder,file1)
                        C:\Program Files\Google\Google SketchUp 6\Plugins\2DTools\Hatching\PATT_ANGLE.jpg

                        ----HERE IS THE SAME CALL UP, EXCEPT CANCEL THE SELECTION:

                        folder="C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching\"
                        C:\Program Files\Google\Google Sketchup 6\Plugins\2Dtools\Hatching
                        file1="*.jpg"
                        *.jpg
                        UI.openpanel("Choose HATCHING...",folder,file1)
                        nil
                        When I cancelled, the window closed, no other activity, and the "nil" was displayed.
                        Since this was successful, do you still want me to run the second suggestion and the alternative?

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

                        1 條回覆 最後回覆 回覆 引用 0
                        • TIGT 離線
                          TIG Moderator
                          最後由 編輯

                          mitcord - I have the answer ! [I thnk ☀ ]

                          Watch for an update very soon... We will give you hatching... 😄

                          TIG

                          1 條回覆 最後回覆 回覆 引用 0
                          • mitcorbM 離線
                            mitcorb
                            最後由 編輯

                            Ok, TIG:
                            Say, what do you do--take power naps?

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

                            1 條回覆 最後回覆 回覆 引用 0
                            • TIGT 離線
                              TIG Moderator
                              最後由 編輯

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

                              Hatching Tool made v6/XP friendly.
                              Adjust to Arcs changed to individual Segments.
                              2D Text now has a Snap setting for Z-plane or All-Faces.

                              Feedback please...

                              TIG

                              1 條回覆 最後回覆 回覆 引用 0
                              • mitcorbM 離線
                                mitcorb
                                最後由 編輯

                                TIG:

                                SUCCESS!!!!!!!
                                Made a 2d rectangle on default 0 zplane, gave it a 2d face, selected hatching tool, folder popped up, selected angle patt and it was applied. Incidentally, I did this procedure with the Ruby Console open, and there was no data on any of the actions.

                                Comments: the angle pattern does not display boldly, you must zoom in. Have not tried any other patterns. I assume they are scalable.

                                Buncha Questions:
                                What is so special about the double backslash method?
                                Why did your original code work for so many other users and not for my case, and maybe others?
                                Is this something that all plugin authors should be considering, or is it unique to SU6?, or XP?
                                Does this fix also address the linestyle question?

                                Thank you very much for all that you do!
                                mitcorb

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

                                1 條回覆 最後回覆 回覆 引用 0
                                • TIGT 離線
                                  TIG Moderator
                                  最後由 編輯

                                  @mitcorb said:

                                  TIG:
                                  SUCCESS!!!!!!!
                                  Made a 2d rectangle on default 0 zplane, gave it a 2d face, selected hatching tool, folder popped up, selected angle patt and it was applied. Incidentally, I did this procedure with the Ruby Console open, and there was no data on any of the actions.
                                  Comments: the angle pattern does not display boldly, you must zoom in. Have not tried any other patterns. I assume they are scalable.
                                  Buncha Questions:
                                  What is so special about the double backslash method?
                                  Why did your original code work for so many other users and not for my case, and maybe others?
                                  Is this something that all plugin authors should be considering, or is it unique to SU6?, or XP?
                                  Does this fix also address the linestyle question?
                                  Thank you very much for all that you do!
                                  mitcorb

                                  \ works for Sketchup UI.openpanel etc in all PC versions.
                                  \ doesn't work for Ruby classes like Dir - those need / !
                                  / works for Mac and newer versions of Sketchup and PC OS's - with UI.openpanel etc.

                                  I have now trapped it to use / for Ruby and Mac and \ for PC always...

                                  I 'inherited' most of the PATT files if you want to adjust them by editing the JPGs feel free - re-publish them here if they are good... You can also scale the image in the Material Editor etc...

                                  Solved at last ! 😄

                                  TIG

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • JClementsJ 離線
                                    JClements
                                    最後由 編輯

                                    OOPs

                                    2Dtexttool.png missing a "T".

                                    Use this if you like.

                                    John

                                    Oh, thanks TIG for a great tool set!

                                    texttool2D.png

                                    John | Illustrator | Beaverton, Oregon

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • TIGT 離線
                                      TIG Moderator
                                      最後由 編輯

                                      😳 v3.6 uploaded with corrected 2D Text toolbar icon - now with 'T'...
                                      http://forums.sketchucation.com/viewtopic.php?p=185760#p185760

                                      TIG

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • C 離線
                                        CAAD2
                                        最後由 編輯

                                        Yes, Solved at last! 😄
                                        many x many, thankSSS 👍

                                        CCCAAAAAAAADDD222

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • TIGT 離線
                                          TIG Moderator
                                          最後由 編輯

                                          Bingo

                                          I'm not up to speed on the Mac, so perhaps a PM to Edson might help.
                                          The one file that goes into Plugins ' 2D#.rb' simply runs load '2Dtools/2D#loader.rb', that in turns loads all of the scripts in the 2Dtools folder that should be in the Plugins folder.

                                          I assume you have all of these... The zip file is NOT needed once the files are extracted...
                                          There should be one 2D file of any sort [ 2D#.rb] in Plugins, but lots inside the 2Dtools folder.

                                          Try typing/pasting this text into the Ruby Console and report what happens...
                                          load '2Dtools/2D#loader.rb'
                                          You shouldget the toolbar available in View > Toolbars...

                                          TIG

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • EdsonE 離線
                                            Edson
                                            最後由 編輯

                                            bingo,

                                            just create a new folder named plugins at the same place as the others are and then put the .rb file and the 2D tools folder thre, as TIG recommended you to do. it should work.

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

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 23
                                            • 24
                                            • 25
                                            • 26
                                            • 27
                                            • 39
                                            • 40
                                            • 25 / 40
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement