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

    [Plugin] Roof.rb

    Scheduled Pinned Locked Moved Extensions & Applications Discussions
    extensions
    170 Posts 73 Posters 157.5k Views 73 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      @unknownuser said:

      Why inexplicable?

      Because I can't explain [explicate] it ! πŸ˜’

      My original code was encrypted [a simple encryption, as used by Didier Bur too].
      If that loads after Artisan then it has no menu BUT works from the Ruby Console [files load in alphanumeric order].
      If you renamed it so it loaded before Artisan then it was fine... BUT then Artisan didn't load at all πŸ˜’
      I used a decrypted version that worked fine with Artisan, so I was unaware of the problem...
      My own version had some minor coding tweaks BUT nothing I can see that should make it behave any differently to the encrypted one... There are almost 4,000 lines of code so I don't want to trawl all of them to find the possible culprit... there are no error messages to help and 'Roof' and 'Artisan' now work fine together with this version anyway...

      This new 'unencrypted' & tweaked version works fine now - I recommend everyone to change to it... πŸ˜’

      TIG

      1 Reply Last reply Reply Quote 0
      • Rich O BrienR Offline
        Rich O Brien Moderator
        last edited by

        Nice explication πŸ‘

        My comedic timing must be a little off today... πŸ˜’

        Download the free D'oh Book for SketchUp πŸ“–

        1 Reply Last reply Reply Quote 0
        • Gus RG Offline
          Gus R
          last edited by

          Thanks very much for the update TIG.

          www.instagram.com/gusrobatto/

          www.facebook.com/gusrobatto

          www.flickr.com/photos/gusrobatto

          1 Reply Last reply Reply Quote 0
          • S Offline
            SketchUpNoobie
            last edited by

            Yep. The update seems to be working fine. Thanks.

            --

            SketchUpNoobie: the complete noob in all things SketchUp.

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

              Thanks for updating the plugin, Tig. If you can figure out the problem, let me know. Maybe there is something I can change to fix this. I also have no idea what would cause this.

              SketchUp Plugins for Professionals

              1 Reply Last reply Reply Quote 0
              • CAntonisC Offline
                CAntonis
                last edited by

                Thank U TIG!
                This plugin will be appreciated as every thing else you created!
                BRAVO!!!!

                1 Reply Last reply Reply Quote 0
                • tbdT Offline
                  tbd
                  last edited by

                  @tig said:

                  If that loads after Artisan then it has no menu BUT works from the Ruby Console [files load in alphanumeric order].
                  If you renamed it so it loaded before Artisan then it was fine... BUT then Artisan didn't load at all πŸ˜’

                  after some debugging at 2am I found the problem - scrambled scripts and pack eval encrypted scripts both return (eval) for FILE , so when tested with file_loaded? the one that gets loaded second it will not execute the block after (usually menu creation code)

                  workaround: use file_loaded("your_filename") or file_loaded("reverse URI")
                  eg file_loaded("roof.rb") or file_loaded("ro.plugins.drop")

                  SketchUp Ruby Consultant | Podium 1.x developer
                  http://plugins.ro

                  1 Reply Last reply Reply Quote 0
                  • utilerU Offline
                    utiler
                    last edited by

                    Thanks TIG, much appreciated!! πŸ‘

                    purpose/expression/purpose/....

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

                      @unknownuser said:

                      @tig said:

                      If that loads after Artisan then it has no menu BUT works from the Ruby Console [files load in alphanumeric order].
                      If you renamed it so it loaded before Artisan then it was fine... BUT then Artisan didn't load at all πŸ˜’

                      after some debugging at 2am I found the problem - scrambled scripts and pack eval encrypted scripts both return (eval) for FILE , so when tested with file_loaded? the one that gets loaded second it will not execute the block after (usually menu creation code)

                      workaround: use file_loaded("your_filename") or file_loaded("reverse URI")
                      eg file_loaded("roof.rb") or file_loaded("ro.plugins.drop")

                      Thanks for the info...OR we could just separate the menu code from the scrambled part so that it's not eval'd...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • CAntonisC Offline
                        CAntonis
                        last edited by

                        Thank U very much TIG. You made a great plugin even greater!

                        Antonis

                        1 Reply Last reply Reply Quote 0
                        • jim smithJ Offline
                          jim smith
                          last edited by

                          Thanks for the update TIG

                          "Out of clutter find simplicity,
                          from discord find harmony,
                          In the middle of difficulty lies opportunity"
                          Albert Einstein

                          1 Reply Last reply Reply Quote 0
                          • Gus RG Offline
                            Gus R
                            last edited by

                            ➑ Not to be a pest but something isn't right. The "eaves soffit size" is resulting in erroneous dimensions on opposing sides. For instance I input and eaves soffit size of 24" all around but I wind up with 1'-9 3/16" on one side and 2'-2 1/2" on another. Another conflict perhaps or am I imagining things. Did this with a "new" skp as well. Any ideas? Thanks.

                            www.instagram.com/gusrobatto/

                            www.facebook.com/gusrobatto

                            www.flickr.com/photos/gusrobatto

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

                              @gus r said:

                              :arrow: Not to be a pest but something isn't right. The "eaves soffit size" is resulting in erroneous dimensions on opposing sides. For instance I input and eaves soffit size of 24" all around but I wind up with 1'-9 3/16" on one side and 2'-2 1/2" on another. Another conflict perhaps or am I imagining things. Did this with a "new" skp as well. Any ideas? Thanks.

                              I assume this is with 'gable-roof' ?
                              The other tools all offset equally anyway ?
                              I can't reproduce any error...
                              On a hipped-roof the overhang is always equal too ?
                              Can you post a SKP that will give you the error [or PM it]...
                              I can't break it πŸ˜•

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • Gus RG Offline
                                Gus R
                                last edited by

                                @tig said:

                                @gus r said:

                                :arrow: Not to be a pest but something isn't right. The "eaves soffit size" is resulting in erroneous dimensions on opposing sides. For instance I input and eaves soffit size of 24" all around but I wind up with 1'-9 3/16" on one side and 2'-2 1/2" on another. Another conflict perhaps or am I imagining things. Did this with a "new" skp as well. Any ideas? Thanks.

                                I assume this is with 'gable-roof' ?
                                The other tools all offset equally anyway ?
                                I can't reproduce any error...
                                On a hipped-roof the overhang is always equal too ?
                                Can you post a SKP that will give you the error [or PM it]...
                                I can't break it πŸ˜•

                                TIG OK, here's a skp file that I just created. Looks like the gable roof comes out good but the hip and mansard result in the same overhang dimensions. This is all using default setting on the ruby.rb.

                                roof ruby test.skp

                                www.instagram.com/gusrobatto/

                                www.facebook.com/gusrobatto

                                www.flickr.com/photos/gusrobatto

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

                                  I can reproduce the problem using your example SKP.
                                  Currently I am a complete loss to say why this might be happening...
                                  I'll sleep on it and come back to you... πŸ˜•

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • Gus RG Offline
                                    Gus R
                                    last edited by

                                    @tig said:

                                    I can reproduce the problem using your example SKP.
                                    Currently I am a complete loss to say why this might be happening...
                                    I'll sleep on it and come back to you... πŸ˜•

                                    Thanks. I have a workaround which is using the old roof.rb in the tools directory. πŸ˜„ Got a house rendering job in today (first one in a while) which is why I just noticed this.

                                    www.instagram.com/gusrobatto/

                                    www.facebook.com/gusrobatto

                                    www.flickr.com/photos/gusrobatto

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

                                      @gus r said:

                                      @tig said:

                                      I can reproduce the problem using your example SKP.
                                      Currently I am a complete loss to say why this might be happening...
                                      I'll sleep on it and come back to you... πŸ˜•

                                      Thanks. I have a workaround which is using the old roof.rb in the tools directory. πŸ˜„ Got a house rendering job in today (first one in a while) which is why I just noticed this.

                                      What version of 'old' Roof do you have that works OK ?
                                      The 'new' version shouldn't differ [but clearly does πŸ˜• ]

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • Gus RG Offline
                                        Gus R
                                        last edited by

                                        @tig said:

                                        What version of 'old' Roof do you have that works OK ?
                                        The 'new' version shouldn't differ [but clearly does πŸ˜• ]
                                        Right now 3.0. Which I put in the tools directory because it conflicts with Artisan. The one that isn't working correctly is your latest, 3.1, which I put away after I noticed the problem.

                                        www.instagram.com/gusrobatto/

                                        www.facebook.com/gusrobatto

                                        www.flickr.com/photos/gusrobatto

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

                                          Gus R

                                          What makes that more puzzling is that v3.0 [encrypted] should be no different to v3.1 decrypted ?
                                          The code hasn't be changed I just unscrambled it - but there IS clearly an effect...
                                          I'll do more investigating... πŸ˜•

                                          TIG

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

                                            Here's v3.2 http://forums.sketchucation.com/viewtopic.php?p=17156#p17156 πŸ˜„

                                            I've fixed the reversed face glitches in Hipped roof's fascias if the 'selected-face' was itself reversed.

                                            The listed materials' now use their 'display_name' rather than their 'name'.

                                            The offset_eaves code has been completely rewritten to correct the inexplicable irregularities in the soffit sizes produced in v3.1 - it was eventually easier to redo the code rather than try to find the underlying cause - now fixed anyway.
                                            πŸ˜•

                                            It also has a zip file of Help docs...

                                            Please update.

                                            TIG

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

                                            Advertisement