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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    [Plugin] Cutting Windows script

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

      Hope you find it useful... 😄
      Bug(s) ? Comment(s) ? idea (s) ? Feel free to report.

      Edit: PATCHED ON 12.31.07 (bug fix) 😳


      English version. WINDOWS VERSION. Unzip in Plugins folder. PDF doc included.


      Version française. Dezipper dans le dossier Plugins. Doc PDF incluse.


      MAC VERSION

      DB

      1 條回覆 最後回覆 回覆 引用 0
      • CadFatherC 離線
        CadFather
        最後由 編輯

        Thanks Didier - i get this:

        Error Loading File Cutting_Windows.rb
        C:/Program Files/Google/Google SketchUp 6/Plugins/Cutting_Windows.rb:1: Invalid char `\003' in expression

        i downloaded with dialup so i cannot rule out the fault being somewhere in the process..

        1 條回覆 最後回覆 回覆 引用 0
        • jenujacobJ 離線
          jenujacob
          最後由 編輯

          didier,
          i loaded the .rb into the plugins folder... but however i do not get the right click option 'Window And Wall'...
          any thoughts?
          untitled.JPG

          1 條回覆 最後回覆 回覆 引用 0
          • I 離線
            ilay7k
            最後由 編輯

            Thank you!

            @jenujacob said:

            didier,
            i loaded the .rb into the plugins folder... but however i do not get the right click option 'Window And Wall'...
            any thoughts?

            I have too...
            open component...define face and nothing in right-click action

            1 條回覆 最後回覆 回覆 引用 0
            • Didier BurD 離線
              Didier Bur
              最後由 編輯

              Hi,

              Below is the code of the controling function to wether display menu or not.
              So, if you're not satisfying all the uppercase comments, it is normal that you don't have the item in the context menu.
              Please let me know 😳

              
              def check_selection_floating_component
              sel = Sketchup.active_model.selection
              return false if sel.length != 1 #ONE ITEM SELECTED AT A TIME
              return false if sel[0].typename != "ComponentInstance" #MUST BE A COMPONENT INSTANCE
              f = sel[0].glued_to
              behavior = sel[0].definition.behavior.snapto
              if not f and behavior != 0 # IF COMPO IS NOT GLUED TO A FACE (FLOATING) AND IF COMPONENT CANNOT BE GLUED TO "NONE"
                return true #LET'S GO FOR THE MENU
                else 
                return false #DON'T DISPLAY ITEM IN CONTEXT MENU
              end 
              end
              
              

              DB

              1 條回覆 最後回覆 回覆 引用 0
              • jenujacobJ 離線
                jenujacob
                最後由 編輯

                SO BASICALLY..

                1. only one component has to be selected.... yes.
                2. must be a component instance... which means ????
                3. the component is not glued to a face... yes this is also satisfied..

                still nothin in the context menu.... or am i missing something from the code???? 😳
                ive never in my life even tried to read a code.. please forgive my ignorance!!! 😄 😉

                1 條回覆 最後回覆 回覆 引用 0
                • Didier BurD 離線
                  Didier Bur
                  最後由 編輯

                  Hi Jenujacob,
                  Please post the SKP so I can test what's happening. Maybe this has something to do with the model settings, 'cause you're doing everything right.

                  DB

                  1 條回覆 最後回覆 回覆 引用 0
                  • jenujacobJ 離線
                    jenujacob
                    最後由 編輯

                    well theres nothing special in this skp though... its just has a standard "window" component from the architecture library placed in empty space as told in the PDF tutorial u provided..
                    Untitled.skp

                    i am also attaching a jpg showing the plugin placement.. just in case...
                    untitled22.JPG

                    1 條回覆 最後回覆 回覆 引用 0
                    • I 離線
                      ilay7k
                      最後由 編輯

                      Didier, thanks a'lot!
                      It works! I just use componets from my collection and sketchup libraries(with glue allways)...so i play with glue function in comp-t's options(turn on any, sloped and ect...then back to none) and wall-cutting options appear in context-menu...slow response that component was unglued

                      Ohhh....we can put comp-ts at wall and ect. then manupulate with detail cutting

                      Thanks! Happy New Year!

                      1 條回覆 最後回覆 回覆 引用 0
                      • Didier BurD 離線
                        Didier Bur
                        最後由 編輯

                        Thanks ilay7k for tracking bugs...

                        Patched on 12.31.07 13:40 PM (GMT+2) ❗
                        Didn't work with components that had a behavior not to glue to anything.
                        Now works with every kind of component.
                        Happy new year !
                        😆

                        DB

                        1 條回覆 最後回覆 回覆 引用 0
                        • I 離線
                          ilay7k
                          最後由 編輯

                          @didier bur said:

                          Thanks ilay7k for tracking bugs...

                          Patched on 12.31.07 13:40 PM (GMT+2) ❗
                          Didn't work with components that had a behavior not to glue to anything.
                          Now works with every kind of component.
                          Happy new year !
                          😆

                          It lives...works! 😲 😄
                          Thanks!
                          future of 2008
                          +dynammic any!!

                          1 條回覆 最後回覆 回覆 引用 0
                          • jenujacobJ 離線
                            jenujacob
                            最後由 編輯

                            this is awesome!!! thanks didier!!! 😄
                            happy new year!!!

                            1 條回覆 最後回覆 回覆 引用 0
                            • kmeadK 離線
                              kmead
                              最後由 編輯

                              Didier:
                              Many thanks for what I hope becomes another great tool. I ran into the attached problem at startup of SU after installing your new ruby.

                              I am on a Mac, OSX 10.4.11 with a PPC chip. I will check on my Intel Mac tomorrow after I get back to work.

                              All the best.

                              Karl


                              Picture 1.jpg

                              I created Dilbertville, sorry about that...

                              1 條回覆 最後回覆 回覆 引用 0
                              • Didier BurD 離線
                                Didier Bur
                                最後由 編輯

                                Hi,

                                Kmead: I've PM'ed you an updated script. Tell me if it works.
                                Cheers,

                                DB

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

                                  Thank you for your generosity.

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

                                    @kmead said:

                                    Didier:
                                    Many thanks for what I hope becomes another great tool. I ran into the attached problem at startup of SU after installing your new ruby.

                                    I am on a Mac, OSX 10.4.11 with a PPC chip. I will check on my Intel Mac tomorrow after I get back to work.

                                    All the best.

                                    Karl

                                    Hi Didier, it happens the same with me... How can I solve this?

                                    tkx

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • Didier BurD 離線
                                      Didier Bur
                                      最後由 編輯

                                      @ Amadex: look at the top of this topic, I've released a Mac version.
                                      Tell me if it's OK.

                                      DB

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

                                        Didier

                                        I also tried your "mac version. I also get an "error" report.
                                        Could you help ?

                                        See error report in attachment

                                        Thanks

                                        Gerd


                                        error cutting report.jpg

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • mariochaM 離線
                                          mariocha
                                          最後由 編輯

                                          Just to let you know that the Mac version works fine here.

                                          The whole thing is a 3 step process;

                                          1. define as cutting window
                                          2. put it on a wall
                                          3. right-click window and select "Cut wall from window" then parameters.
                                            Also works on several windows at a time.
                                            Many well deserved thanks to the author !

                                          %(#008000)[Mario C.
                                          Every rule has exceptions, but some.]

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • P 離線
                                            paddyclown
                                            最後由 編輯

                                            Hi

                                            I tried to add this plugin to SUv8 Pro & got this message:
                                            Error Loading File cutting_windows.rb
                                            (eval):719: compile error
                                            (eval):610: syntax error, unexpected ',', expecting kEND
                                            faces_and_heights[0].pushpull (faces_and_heights[1]), false
                                            ^Error Loading File yaml.rb
                                            no such file to load -- date

                                            Does anyone have an idea what is going on ?
                                            Thanks in advance folks,

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

                                            Advertisement