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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] DrawHelix14

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

      can't you filter that ? the script to catch the vcb value and remove the leading zero in incompatible version of SU ?

      DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

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

        @unknownuser said:

        @ TIG
        I am in V6
        Curious
        I have an old version Draw Helix 13
        make your 5.0 changment inside : works fine 😎

        I load the new DrawHelix14
        nothing is drawing 😮 (same result with your changment) 😮
        I have this in the Ruby console

        Error; #<ArgumentError; wrong number of arguments(2 for 1)>
        > C;/Program Files/Google/Google SketchUp 6/Plugins/drawhelix14.rb;68;in `start_operation'
        > C;/Program Files/Google/Google SketchUp 6/Plugins/drawhelix14.rb;68;in `drawhelix'
        > C;/Program Files/Google/Google SketchUp 6/Plugins/drawhelix14.rb;78
        > C;/Program Files/Google/Google SketchUp 6/Plugins/drawhelix14.rb;78;in `call'
        

        Line #65
        if Sketchup.version_number.to_i < 7
        changed to
        if Sketchup.version.to_i < 7
        will work in SUp v6 too !
        Simple typo by Jim meant that you always got a version number in the tens of thousands and not a simple 6, 7 or 8 etc so it would always be > 7 and then try to start_operation with an extra argument and break the tool 😒

        TIG

        1 條回覆 最後回覆 回覆 引用 0
        • pilouP 離線
          pilou
          最後由 編輯

          Cool to see that is the same problem 💚

          PS It's the same for the New Double Line!
          Don't work inside the V6 😮
          When press Enter walls are not drawn !

          same error message in the Ruby console

          Error; #<ArgumentError; wrong number of arguments(2 for 1)>
          C;/Program Files/Google/Google SketchUp 6/Plugins/dline2.rb;157;in `start_operation'
          C;/Program Files/Google/Google SketchUp 6/Plugins/dline2.rb;157;in `onReturn'
          C;/Program Files/Google/Google SketchUp 6/Plugins/dline2.rb;157
          

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

          1 條回覆 最後回覆 回覆 引用 0
          • pilouP 離線
            pilou
            最後由 編輯

            Works now for the Draw Helix 14 in the V6 ☀
            but now it's your modification 5.0 who don't works in the Draw Helix 14 ! (V6) 💚
            I have that

            values = [300.mm, 300.mm, 100.mm, 5.0, 24]
            
            Error; #<ArgumentError; invalid value for Integer; "5.5">
            C;/Program Files/Google/Google SketchUp 6/Plugins/drawhelix14.rb;31;in `inputbox'
            C;/Program Files/Google/Google SketchUp 6/Plugins/drawhelix14.rb;31;in `drawhelix'
            C;/Program Files/Google/Google SketchUp 6/Plugins/drawhelix14.rb;78
            C;/Program Files/Google/Google SketchUp 6/Plugins/drawhelix14.rb;78;in `call'
            

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

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

              OK looks like float and string clash ?
              I assume the edited line #23 is clearly values = [300.mm, 300.mm, 100.mm, 5.0, 24] with no string delimter "" or '' around anything...
              Perhaps your JLF::DrawHelix Registry entry is screwed or locked on the last used 'intger' values?
              You could delete it...
              BUT unless you are confident about messing around within a PC's Registry and risking disaster... then I suggest this safer fix...
              Temporarily disable reading the Registry - go to line #24
              v = Sketchup.read_default(reg_key, "values")
              and add a leading # so it doesn't load at all
              #v = Sketchup.read_default(reg_key, "values")
              If you get an error also add a temporary line after it
              v=nil
              Run the tool once and close SUp, then remove that # etc from the .rb and retry - it should now be using the last entered values you used which are 'float'...

              Also - in passing I now note that in line #36 there is
              angle = 2*3.14159/sections
              it would be better as
              angle = 360.degrees/sections
              as the over approximated value of 'pi' could produce minor inaccuracies otherwise...

              TIG

              1 條回覆 最後回覆 回覆 引用 0
              • J 離線
                Jim
                最後由 編輯

                Thanks. I've made the changes and updated the download. The version works on SketchUp 6, 7, and 8 for me.

                Hi

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

                  Thinking about the earlier registry entry potentially messing integer and float, to be on the safe side you could add this

                          unless v.nil?
                              values = eval(v)
                              values[0] = values[0].to_l
                              values[1] = values[1].to_l
                              values[2] = values[2].to_l
                              values[3] = values[3].to_f
                              values[4] = values[4].to_i
                          end
                  

                  so that older values' classes are always correctly set?

                  TIG

                  1 條回覆 最後回覆 回覆 引用 0
                  • J 離線
                    Jim
                    最後由 編輯

                    Had the same thought... thanks.

                    Hi

                    1 條回覆 最後回覆 回覆 引用 0
                    • pilouP 離線
                      pilou
                      最後由 編輯

                      Ok now that works like a charm in V6! 😎
                      Bravo! 👍
                      And sorry for the inconvenience 😉

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

                      1 條回覆 最後回覆 回覆 引用 0
                      • simon le bonS 離線
                        simon le bon
                        最後由 編輯

                        Ok now that works like a charm in V6! 😎
                        Bravo! 👍

                        (it is better if I don't touch even one line of code 😆 )

                        simon

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

                          Hi:
                          I tried to use DrawHelix14 last night in SU7 and on opening the program I got a load error.
                          Text file copy of the error message:
                          Error Loading File drawhelix14.rb
                          C:/Program Files/Google/Google SketchUp 7/Plugins/drawhelix14.rb:1: syntax error
                          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                          ^
                          C:/Program Files/Google/Google SketchUp 7/Plugins/drawhelix14.rb:2: syntax error
                          <html xmlns="http://www.w3.org/1999/xhtml">
                          ^
                          C:/Program Files/Google/Google SketchUp 7/Plugins/drawhelix14.rb:3: syntax error
                          <head>
                          ^
                          C:/Program Files/Google/Google SketchUp 7/Plugins/drawhelix14.rb:5: syntax error
                          <title xmlns="http://www.google.com/ns/jotspot">Download Attachment</title>
                          ^
                          C:/Program Files/Google/Google SketchUp 7/Plugins/drawhelix14.rb:6: syntax error
                          <style xmlns="http://www.google.com/ns/jotspot">
                          ^
                          C:/Program Files/Google/Google SketchUp 7/Plugins/drawhelix14.rb:19: syntax error
                          content: ".";
                          ^
                          C:/Program Files/Google/Google SketchUp 7/Plugins/drawhelix14.rb:70: syntax error
                          <body xmlns="http://www.google.com/ns/jotspot">
                          ^
                          I probably did something wrong. I do have version 1.3

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

                          1 條回覆 最後回覆 回覆 引用 0
                          • J 離線
                            Jim
                            最後由 編輯

                            When you go to download the file, right-click the link and select Save As, or Save Target As.

                            The file you posted in the error is an html page - probably has the script embedded in it somewhere, but your browser doesn't know what to do with .rb files.

                            Hi

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

                              Thanks Jim for your quick reply.
                              That is what I thought. As many plugins as I have downloaded and given others the same advice as yours, you'd think I would know better.
                              I think I am divesting myself of good sense daily.

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

                              1 條回覆 最後回覆 回覆 引用 0
                              • J 離線
                                Jim
                                最後由 編輯

                                @mitcorb said:

                                I think I am divesting myself of good sense daily.

                                I understand, believe me. 😆

                                Hi

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

                                  Well, Jim:
                                  I don't know why but I keep getting the HTML file, even on this work computer. Same browser, though--Firefox. I will keep trying.

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

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • Dave RD 離線
                                    Dave R
                                    最後由 編輯

                                    @mitcorb said:

                                    Well, Jim:
                                    I don't know why but I keep getting the HTML file, even on this work computer. Same browser, though--Firefox. I will keep trying.

                                    I tried downloading the rb file today and got this in the file.

                                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                                    <html xmlns="http://www.w3.org/1999/xhtml">
                                    <head>
                                    <meta http-equiv="X-UA-Compatible" content="chrome=1" />
                                    
                                    <title xmlns="http://www.google.com/ns/jotspot">Download Attachment</title>
                                    <style xmlns="http://www.google.com/ns/jotspot">
                                              html, body {
                                                padding; 0;
                                                margin; 0;
                                              }
                                              body {
                                                font-family; Arial, Verdana, sans-serif;
                                                font-size; 12px;
                                                background-color; #fff;
                                                background-image; none;
                                                direction; ltr;
                                              }
                                              .sites-clear;after {
                                                content; ".";
                                                display; block;
                                                height; 0;
                                                clear; both;
                                                visibility; hidden;
                                              }
                                              #sites-header {
                                                background-color; #fff;
                                                border-bottom; 1px solid #b0bdcc;
                                                height; 1%;
                                                padding; 5px 5px 0 0;
                                                margin-bottom; 10px;
                                              }
                                              .sites-account {
                                                float; right;
                                                font-size; 12px;
                                                padding; 4px 8px 5px;
                                              }
                                              .sites-account a {
                                                color; #4e7dbf; /* onebarLinkColor */
                                              }
                                              .sites-content-wrapper {
                                                min-height; 150px;
                                                margin; 0 5px;
                                                _height; 150px !important;
                                                padding; 5px;
                                              }
                                              h2 {
                                                margin; 5px 0 10px;
                                                font-size; 22px;
                                              }
                                              p {
                                                margin-top; 0px;
                                              }
                                              .sites-subfooter {
                                                font-size; 11px;
                                                padding; 5px 0 5px;
                                                text-align; center;
                                              }
                                              .sites-subfooter p {
                                                margin; 0;
                                                padding; 5px;
                                              }
                                              .sites-subfooter p span {
                                                font-size; 10px;
                                              }
                                              #sites-logo {
                                                margin-bottom; 15px;
                                              }
                                            </style>
                                    </head>
                                    <body xmlns="http://www.google.com/ns/jotspot">
                                    <div id="sites-status" class="sites-status" style="display;none;">
                                    <div id="sites-notice" class="sites-notice"> </div>
                                    </div>
                                    <div class="sites-content-wrapper">
                                    <img xmlns="http://www.w3.org/1999/xhtml" src="http://www.gstatic.com/sites/p/544341/system/app/images/logo/logo.gif" id="sites-logo" alt="Google Sites Logo" />
                                    <h2>Download Attachment</h2>
                                    <p xmlns="http://www.w3.org/1999/xhtml">
                                            Click <a href="/site/jimfoltz/sketchup/my-sketchup-plugins/drawhelix/drawhelix14.rb?attredirects=0">here</a> to download your attachment.
                                            </p>
                                    </div>
                                    </body>
                                    </html>
                                    
                                    

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • Dave RD 離線
                                      Dave R
                                      最後由 編輯

                                      @unknownuser said:

                                      I've tried using a resulting helix as a path for follow me.
                                      I get an error box indicating "This does not appear to be a valid path."
                                      I've tried exploding the curve and using Weld on it. That didn't change anything. Same error.

                                      Any suggestions, or maybe it's just not intended for this application?

                                      Jay

                                      Jay, I can't say I've seen that with helices I drawn with version 1.3 but I have seen the message on occasion. In most cases, Follow Me runs anyway. Can you get it to go even with the message?

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • V 離線
                                        Valerio_Queiroz
                                        最後由 編輯

                                        Plugin muito útil e fácil de usar. Bom trabalho! 😉

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • B 離線
                                          bupaje
                                          最後由 編輯

                                          I had a couple problems downloading this and I think it is just the *.rb extension in Firefox first - it tries to download it as a Firefox RB file so they appraently use that extension. When I tried Chrome using the forum link http://sites.google.com/site/jimfoltz/sketchup/my-sketchup-plugins/drawhelix/drawhelix14.rb I got a 'no such file found.' When I tried to paste the url I came to a 'Page Not Found' page but it gave me a https link to 'similar files' and this link finally worked https://sites.google.com/site/jimfoltz/sketchup/my-sketchup-plugins/drawhelix/drawhelix14.rb

                                          Anyway just what I needed. 😄

                                          Burt
                                          Stormvisions

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • BoxB 離線
                                            Box
                                            最後由 編輯

                                            Did you try (right click and save as) as it says next to the download link.

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement