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

    [REQ] Convert ALL components to groups?

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

      @jackson said:

      Matt,

      I get an error message on opening SU after copying in your .rb
      [attachment=0:3hbnrx9w]<!-- ia0 -->C2G Ruby Error.jpg<!-- ia0 -->[/attachment:3hbnrx9w]

      I ran the other .rb I received- it definitely works, exploding all top level comps and regrouping them, but I had to delete and purge 90% of the model as I think it would take about an hour of SU hanging before that model was fully converted. Would been a perfect task to have left running at lunchtime though!

      Thanks again,

      I get the exact same error. any solution?

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

        Hi rfn,
        You just have to add this line at the beginning of the script :

        require 'sketchup.rb'
        

        😉
        I will update the script... thank you !

        Frenglish at its best !
        My scripts

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

          Hello.

          here is a test which converts components to groups.
          Not really tested... 😉

          EDIT : See last version below

          Frenglish at its best !
          My scripts

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

            With SU 2017 if I select a few components script convert only one random from selection...
            How can I modify it to convert every selected components to groups?

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

              10 Years later... this script almost does exactly what I need, but as Antiever pointed out it just does one from a selection. Anyone know how to fix this behaviour?

              1 條回覆 最後回覆 回覆 引用 0
              • sdmitchS 離線
                sdmitch
                最後由 編輯

                @paguthrie said:

                10 Years later... this script almost does exactly what I need, but as Antiever pointed out it just does one from a selection. Anyone know how to fix this behaviour?

                Hopefully Matt666 wont mind me editing his plugin. Tested in SU2017 in model with and without selections.


                C2G.rb

                Nothing is worthless, it can always be used as a bad example.

                http://sdmitch.blogspot.com/

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

                Advertisement