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

    Curved Staircases

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

      .

      yep.. handrail works.. here's a 'traditional'

      handrail.jpg

      dotdotdot

      1 條回覆 最後回覆 回覆 引用 0
      • G 離線
        Garry K
        最後由 編輯

        Jeff Thanks a ton. You've been very helpful.

        I'm going to build a shell that just populates the web dialog box with values. It will be easier to debug. Then I will see if thomthom, or TIG can help out.

        1 條回覆 最後回覆 回覆 引用 0
        • G 離線
          Garry K
          最後由 編輯

          I re read all of thomthom's documentation on web dialogs. It turns out that Safari doesn't support the onload event. I've changed how I am doing things. I'm hopeful that I've got it figured out.

          Please download a current version and try it out on the mac - thanks.

          1 條回覆 最後回覆 回覆 引用 0
          • jeff hammondJ 離線
            jeff hammond
            最後由 編輯

            hmm.. same thing as last time..

            i'm not sure if there's something i can check to be positive i'm using the latest test version but in this case, i assume since i had to re-edit the txt file, all went well on the installation side of things.

            dotdotdot

            1 條回覆 最後回覆 回覆 引用 0
            • G 離線
              Garry K
              最後由 編輯

              Thanks,

              You can check the version in the Extensions area under Preferences. However - I did not change the version number this time. It is 1.0.3
              Next time we try I will make a point of increasing the build number.

              I will need to dig into this.

              BTW are you running Sketchup 2014?
              I haven't tested my plugin with that version - I didn't even know that it was out yet.

              1 條回覆 最後回覆 回覆 引用 0
              • G 離線
                Garry K
                最後由 編輯

                Jeff,

                What version of SU are you running?

                What I find interesting and frustrating is that I thought I solved this a month ago. Driven ran my test code on his mac and it seemed to work fine.

                There is a dialog_test.rb file part way down this thread

                http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=55577

                perhaps you can try it and see if you 1) get a populated web dialog and 2) get an SU message box with you click "OK"

                1 條回覆 最後回覆 回覆 引用 0
                • jeff hammondJ 離線
                  jeff hammond
                  最後由 編輯

                  @garry k said:

                  Jeff,

                  What version of SU are you running?

                  What I find interesting and frustrating is that I thought I solved this a month ago. Driven ran my test code on his mac and it seemed to work fine.

                  There is a dialog_test.rb file part way down this thread

                  http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=55577

                  perhaps you can try it and see if you 1) get a populated web dialog and 2) get an SU message box with you click "OK"

                  i'm doing all the testing on SketchUp Make 2013 and OSX 10.9.1 (mavericks)

                  Screen Shot 2014-02-04 at 4.31.50 PM.png

                  (some of the earlier ruby errors (which i've edited out of the thread) were being reported in a weird version of sketchup i have but i switched to trying in in SuMake.)


                  when using the web dialog test via the link you provided, all seems to work fine (again, sizing/layout issues with the actual window but the functionality of the dialog appears to work well-- drop downs, text fields, buttons, check boxes.. no problems).. plus there are default setting already entered in the text fields etc when doing the test.

                  message box upon clicking 'OK' in the test:
                  Screen Shot 2014-02-04 at 4.33.45 PM.png

                  dotdotdot

                  1 條回覆 最後回覆 回覆 引用 0
                  • G 離線
                    Garry K
                    最後由 編輯

                    When I did this test I thought we were good to go with Safari.

                    I suppose it is possible that it is a timing issue - which is possible since Safari works asynchronously.

                    The difference is instead of hard coding the defaults, the program retrieves values out of variables - that would slow it down.

                    I think the next step is to push out some info to the console. I have made a few other changes as I am getting ready to publish the plugin via the plugin store.

                    Anyway - I wish I could afford a Mac - then I wouldn't have to rely on you as much. I am grateful.

                    A question on the side. Your bio states you are a carpenter. What kind of work do you do may I ask?

                    1 條回覆 最後回覆 回覆 引用 0
                    • jeff hammondJ 離線
                      jeff hammond
                      最後由 編輯

                      @garry k said:

                      A question on the side. Your bio states you are a carpenter. What kind of work do you do may I ask?

                      i build skateboard ramps:

                      2.jpg

                      4.jpg

                      1.jpg

                      5.JPG

                      6.jpg

                      dotdotdot

                      1 條回覆 最後回覆 回覆 引用 0
                      • G 離線
                        Garry K
                        最後由 編輯

                        Pretty cool - my oldest son tore his ACL while skateboarding. He was on a pretty steep street.

                        I've move the building of the string with all the defaults out of the call back. This should help speed it up.

                        I've also put in a few debug messages to the console.

                        Since you have a user id and password already I'll just put the plugin here.


                        Stair Maker plugin version 1.0.4

                        1 條回覆 最後回覆 回覆 引用 0
                        • jeff hammondJ 離線
                          jeff hammond
                          最後由 編輯

                          .

                          same problem still.. 1.0.4 on the left.. web dialog test on the right..

                          Screen Shot 2014-02-04 at 7.37.58 PM.png

                          dotdotdot

                          1 條回覆 最後回覆 回覆 引用 0
                          • G 離線
                            Garry K
                            最後由 編輯

                            Thanks Jeff,

                            By any chance did you have the ruby console open when you tried the stair maker?

                            1 條回覆 最後回覆 回覆 引用 0
                            • jeff hammondJ 離線
                              jeff hammond
                              最後由 編輯

                              .

                              yeah. sorry- should of mentioned it earlier:


                              Error: #<LocalJumpError: unexpected return>
                              (eval):551:in `run_startup_dialog'

                              from_ruby( 'inside_stringer=Housed|Sawtooth|None&outside_stringer=Housed|Sawtooth|None&inside_option=Has Heel|Has Foot|Both|None&outside_option=Has Heel|Has Foot|Both|None&inside_rail=Guard Rail|Wall Rail|None&outside_rail=Guard Rail|Wall Rail|None&direction=Clockwise|Anti Clockwise&rail_style=Classic|Modern|Round|Square|Standard|Traditional&inside_stringer=1&inside_option=3&inside_thickness=2 1/2"&inside_width=1'&inside_rail=2&outside_stringer=0&outside_option=3&outside_thickness=2 1/2"&outside_width=1' 4"&outside_rail=2&total_rise=8' 9"&risers=14&riser_thickness=1/2"&direction=1&stair_width=3' 6"&radius=8'&degrees=90.0&floor_thickness=1' 1/4"&rail_style=5&tread_thickness=1 1/2"&average_run=10"&tread_bullnose=1/2"&nosing=1"&flare_amount=0"&progressive_flare=3/4"&flare_count=0&open_riser=0' )


                              with the dialog test, there's no error but all the stuff starting with 'from_ruby' and on appear in the ruby console..

                              dotdotdot

                              1 條回覆 最後回覆 回覆 引用 0
                              • G 離線
                                Garry K
                                最後由 編輯

                                I've got some different debugging information in here.
                                I've also changed a bit of code that now uses instance variables.

                                Please open your Ruby Console and try it and send me back the information.
                                Thanks


                                version 1.0.5

                                1 條回覆 最後回覆 回覆 引用 0
                                • A 離線
                                  adt2
                                  最後由 編輯

                                  Garry - I've already sent you this information offline, but I'm repeating it here for the record.

                                  When I open SU, I immediately get the following error:

                                  Error Loading File GKWare_StairMaker_Ext.rb
                                  undefined method `call' for false:FalseClass

                                  Open the Ruby Console, then select Plugins>Curved Stairs>Stair Maker, and I get this in the console:

                                  show 1
                                  loaded 1
                                  cb1 complete
                                  closed 1
                                  show 2
                                  cb1 complete
                                  loaded 2
                                  cb2 complete

                                  Unless I'm mistaken, the "cb2 complete" shouldn't post to the console until I've hit the OK button, right?

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • D 離線
                                    driven
                                    最後由 編輯

                                    Web service error code -21 . Please notify CabMaker32.com.

                                    john

                                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • M 離線
                                      mwm5053
                                      最後由 編輯

                                      Hi Garry I saw this thread when you started it and watching progress. These are my screenshots. I'm on a Mac similar to Jeff's and using SU 8 right know my My Safari build if it helps is


                                      Screen Shot 2014-02-05 at 4.43.49 PM.png


                                      Screen Shot 2014-02-05 at 4.38.30 PM.png


                                      Screen Shot 2014-02-05 at 4.38.53 PM.png

                                      2011 iMac
                                      SU 2015 Pro, 2017 Make
                                      V2 Twilight
                                      macOS Sierra 10.12.5

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • G 離線
                                        Garry K
                                        最後由 編輯

                                        John,

                                        You need to edit the Defaults.txt file and insert user and password.
                                        Error -21 means "user not on file"
                                        The shipped user in the defaults.txt file is "user" and password is "test" and these are not on file.

                                        You would have to register on my website which will email you with your password.

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • G 離線
                                          Garry K
                                          最後由 編輯

                                          Walt,

                                          The "http error" comes from the http call to my web service.

                                          xmlHttp.readyState == 4
                                          and
                                          xmlHttp.status != 200

                                          I could have returned the status - they mostly talk about time outs etc.
                                          I know that the web host site has been experiencing hack attacks today. So it very well could time out.

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • M 離線
                                            mwm5053
                                            最後由 編輯

                                            Ok so I missed the part about registering on your website so I did just now and still getting "http error" will try later. PS handrail works good. How long is the trial good for?

                                            2011 iMac
                                            SU 2015 Pro, 2017 Make
                                            V2 Twilight
                                            macOS Sierra 10.12.5

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

                                            Advertisement