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

    [Plugin] Lamella Roofs

    Scheduled Pinned Locked Moved Plugins
    63 Posts 25 Posters 47.9k Views 25 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.
    • V Offline
      victor hugo
      last edited by

      Dave.

      I had some extensions unloaded........ load them and restarted SU and is working now...

      Thanks.

      1 Reply Last reply Reply Quote 0
      • Dave RD Offline
        Dave R
        last edited by

        There's no way in the world we could have helped you without knowing that. πŸ˜’

        I'm glad it's working now.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

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

          Hi Dave R,

          My understanding from this exchange is that the problem was related to Victor Hugo's plugin folder, but is there anything I should do to make this plugin more robust?

          1 Reply Last reply Reply Quote 0
          • Dave RD Offline
            Dave R
            last edited by

            Hi Tim,

            No, your plugin is just fine. There's nothing you could do in your script to prevent a user from unticking boxes in the Extensions list under Preferences. V.H.'s problem wasn't specific to your script. It just happened yours is the one he was trying to use when he discovered he had a problem.

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

            1 Reply Last reply Reply Quote 0
            • P Offline
              prousteilcalamaro
              last edited by

              Hi Tim,

              Your plugin seems very nice, however I've a problem in executing it.
              After the two windows for the parameters (I leave them as default), the plugin stops working, no drawing is produced and the Ruby Console shows an error as follows:

              @unknownuser said:

              Error: #<NoMethodError: undefined method make_unique' for nil:NilClass> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/lamella_roof.rb:289:in lamella_roof'
              C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/lamella_roof.rb:1038

              I'm using SU 8 and the new version of your plugin.

              Is something wrong with my SU preferences? I've a lot of plugins loaded.
              Let me know how to solve the problem (I'm not a programmer).

              Thanks

              1 Reply Last reply Reply Quote 0
              • Dave RD Offline
                Dave R
                last edited by

                There's nothing wrong with Tim's plugin. It works just fine on SU 8. Considering that there's not much to installing it, I suspect you have another plugin that is causing the problem. There are some plugins that are known to cause other plugins to fail. SketchyPhysics is one.Matchbox_r1.1 is another. There are more. Perhaps you could post a screenshot of your Plugins directory and we'll be able to tell you which one it is.

                Etaoin Shrdlu

                %

                (THERE'S NO PLACE LIKE)

                G28 X0.0 Y0.0 Z0.0

                M30

                %

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

                  Sounds like SketchyPhysics to me - that is known to mess with the base class/methods - like 'group.copy' which should return a reference to the 'new-group' but after the ill-advised reworking it returns 'nil'... so then when some legit code tries to do something to the copy
                  [like '.make_unique'] it fails because now it's 'nil' and not 'new_group'.
                  It could be relatively easy to fix this but the authors of this and some other 'rogue' scripts have either lost interest, or simply don't care about others and their legit tools, which expect the API to work as it ought...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    prousteilcalamaro
                    last edited by

                    Thank you very much!

                    I had SketchyPhysics in my Plugins folder. I removed that plugin (I don't need it for my actual project) and Lamella Roof works fine: it's a great plugin.

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

                      Nice surprise to go away into the Ontario wilderness for a week's canoeing, and come back to find a problem has been raised and resolved without my doing anything. Thx, all!

                      1 Reply Last reply Reply Quote 0
                      • flyer50F Offline
                        flyer50
                        last edited by

                        @tig said:

                        .......
                        If you implement these general changes this has the basis of a useful toolset...

                        Sorry if I disturbe you . I try to make all your suggestions but I can't solve the problems. my file seems to be different and I can't update it.
                        My poor knowledge is also a big problem.
                        My program also don't give any results, may be it is an incomplete version.

                        Can you please upload the correct file that you are using already updated?

                        Tanks a lot
                        Flyer

                        1 Reply Last reply Reply Quote 0
                        • Chris FullmerC Offline
                          Chris Fullmer
                          last edited by

                          The file is attached to the post here:

                          http://sketchucation.com/forums/viewtopic.php?f=323&t=46044#p411299

                          The very first post in this thread. Download it and install it. Look on youtube or somewhere for plugin installation help. Good luck!

                          Lately you've been tan, suspicious for the winter.
                          All my Plugins I've written

                          1 Reply Last reply Reply Quote 0
                          • flyer50F Offline
                            flyer50
                            last edited by

                            @chris fullmer said:

                            The file is attached to the post here:

                            http://sketchucation.com/forums/viewtopic.php?f=323&t=46044#p411299

                            The very first post in this thread. Download it and install it. Look on youtube or somewhere for plugin installation help. Good luck!

                            Thank for your replay

                            I use win7 and SU8

                            I have already installed many time the program and also the one from the link you suggest but I have always the same problem:

                            I can't see any drawing on the screen

                            I did these tests :

                            on the screen I draw one only component (cube) and when I select lamella.rb from the plugins list.

                            the component (cube) disappear from the screen,
                            the data input masks are anabled and I use the default settings,
                            from the rubi console I can see that the program il working but it does not finish the job.

                            on the rubi console I have this report:

                            http://www.filedropper.com/lamellabroken

                            I removed all plugins ( they are a lot ) except lamella.rb :

                            the program can complete its job,
                            at the end I can see on the screen the component (cube) that was previous cancelled,
                            in the rubi console I have the following report :

                            http://www.filedropper.com/lamellacomplete

                            but still I don't see the drawing of the program

                            After I reinstall all the plugins one by one but when I reinstall sketchyphisics the lamella plugin stops again.
                            Now sketchyphisics is removed

                            thanks a lot for your help

                            1 Reply Last reply Reply Quote 0
                            • flyer50F Offline
                              flyer50
                              last edited by

                              I have solved and now it is working
                              the problem was on the dimentions
                              Ciao Flyer

                              1 Reply Last reply Reply Quote 0
                              • pilouP Offline
                                pilou
                                last edited by

                                Works fine! 😎

                                You must put an alert message when 0Β° is entered for the Screw Angle as nothing is done! πŸ€“

                                Funny things arrive when you take Screw Angle = 1Β° πŸ˜„


                                lamella.jpg

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

                                1 Reply Last reply Reply Quote 0
                                • flyer50F Offline
                                  flyer50
                                  last edited by

                                  Sorry to distrube again

                                  for two days the plugin was working
                                  but now it stops again and in ruby console I can see

                                  ....
                                  Compound mitre saw cuts (Option A)
                                  Horizontal angle 39.68
                                  Vertical angle 93.62

                                  Compound mitre saw cuts (Option B)
                                  Horizontal angle 5.65
                                  Vertical angle 39.82
                                  Error: #<NoMethodError: undefined method make_unique' for nil:NilClass> D:/Program Files/sketchup/Plugins/lamella_roof.rb:289:in lamella_roof'
                                  D:/Program Files/sketchup/Plugins/lamella_roof.rb:1038

                                  Pls. how can I solve this problem?

                                  Flyer

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

                                    Have you recently installed or enabled a new app, like Sketchy Physics or a nascent BIM tool ?
                                    It looks like the code is first copying a group and then using make_unique on it.
                                    The API's group.copy returns the new group, so that can then be used with the method .make_unique, BUT some tools [like SP] mess with some native methods and return nil rather than the new group, so things fail...
                                    Try uninstalling the recent/problem tools and retest...

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • flyer50F Offline
                                      flyer50
                                      last edited by

                                      @tig said:

                                      Have you recently installed or enabled a new app, like Sketchy Physics or a nascent BIM tool ?

                                      Yes unfortunately.
                                      I removed bim-tools.rb program and in ruby console I have the following text, but the program can complete the cycle... and I can see the model
                                      ......
                                      ...

                                      Compound mitre saw cuts (Option A)
                                      Horizontal angle 39.68
                                      Vertical angle 93.62

                                      Compound mitre saw cuts (Option B)
                                      Horizontal angle 5.65
                                      Vertical angle 39.82
                                      WARNING: make_unique is a deprecated methodof Sketchup:Group
                                      WARNING: make_unique is a deprecated methodof Sketchup:Group
                                      WARNING: make_unique is a deprecated methodof Sketchup:Group

                                      (x,y) coordinates of vertices on the face of the lamella
                                      -568.80, 142.75
                                      -554.67, 0.00
                                      ....
                                      ..

                                      grazie
                                      Flyer

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

                                        Some of these half-baked BIM tools add observers and/or mess with some of the native API methods.
                                        In the Lamella tool's code there is probably a cp=group.copy...cp.make_unique code-combo which is being messed up by this [unfairly!]. the group.copy should return a reference to the new group, if the method is messed up it can return 'nil', then the cp.make_unique fails, as will any further operations using 'cp' as the new group's reference, which now isn't the expected 'Group' object but a 'Nil' object ! ...

                                        The Console output about 'mitering' is the tool's output to report what it's doing.
                                        The 'warning' about 'deprecated-method' is a known error from the API - sometimes groups copied via the API MUST be 'made unique' - otherwise changing one changes the others[s] - just like component-instance editing does. So the warning is 'spurious'...

                                        There now seems nothing of concern there.

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • flyer50F Offline
                                          flyer50
                                          last edited by

                                          Thanks for your welcome help

                                          ciao e grazie

                                          flyer

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

                                            It produces very nice geometry πŸ‘
                                            I wish this tool could generate LR based on given surface.

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

                                            Advertisement