sketchucation logo sketchucation
    • Login
    1. Home
    2. alexpacio2013
    3. Posts
    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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 11
    • Posts 112
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Request Section Management Panel

      @Rich-O-Brien I'll start by saying that I'm not a programmer. I created this script with cloud 3 5 AI to disable or activate the sections in the project. The plug-in correctly creates the list of sections but even though I created the activate and deactivate buttons, they don't work. I tried it on sketchup 2024. Is there anyone who can give me that suggestion?

      require 'sketchup.rb'
      
      module SectionManager
        def self.show_dialog
          dialog = UI::WebDialog.new("Gestione Sezioni", false, "SectionManager", 400, 500, 100, 100, true)
          dialog.set_size(400, 500)
      
          dialog.add_action_callback("toggleSection") do |_, section_id|
            model = Sketchup.active_model
            section = find_section_by_id(model, section_id.to_i)
            if section
              model.start_operation('Toggle Section', true)
              section.active = !section.active
              model.commit_operation
              puts "Sezione #{section_id} #{section.active? ? 'attivata' : 'disattivata'}"
            else
              puts "Sezione #{section_id} non trovata"
            end
            update_dialog_content(dialog)
          end
      
          dialog.add_action_callback("activateSection") do |_, section_id|
            model = Sketchup.active_model
            section = find_section_by_id(model, section_id.to_i)
            if section
              model.start_operation('Activate Section', true)
              section.active = true
              model.commit_operation
              puts "Sezione #{section_id} attivata"
            else
              puts "Sezione #{section_id} non trovata"
            end
            update_dialog_content(dialog)
          end
      
          dialog.add_action_callback("refreshList") do |_|
            puts "Aggiornamento lista richiesto"
            update_dialog_content(dialog)
          end
      
          update_dialog_content(dialog)
          dialog.show
        end
      
        def self.find_all_sections(entities)
          sections = []
          entities.each do |entity|
            if entity.is_a?(Sketchup::SectionPlane)
              sections << entity
            elsif entity.is_a?(Sketchup::Group) || entity.is_a?(Sketchup::ComponentInstance)
              sections += find_all_sections(entity.definition.entities)
            end
          end
          sections
        end
      
        def self.find_section_by_id(model, section_id)
          find_all_sections(model.active_entities).find { |s| s.entityID == section_id }
        end
      
        def self.update_dialog_content(dialog)
          model = Sketchup.active_model
          sections = find_all_sections(model.active_entities)
          puts "Numero totale di sezioni trovate (incluse quelle nidificate): #{sections.length}"
      
          html = <<-HTML
            <html>
            <head>
              <style>
                body { font-family: Arial, sans-serif; }
                .section { margin: 10px 0; }
                button { margin-left: 5px; }
              </style>
            </head>
            <body>
              <h2>Tutte le Sezioni</h2>
              <div id="sectionList">
                #{
                  if sections.empty?
                    "<p>Nessuna sezione trovata nel modello.</p>"
                  else
                    sections.map { |section|
                      "<div class='section'>
                        #{section.name || 'Sezione senza nome'} (ID: #{section.entityID})
                        <button onclick='toggleSection(#{section.entityID})'>
                          #{section.active? ? 'Disattiva' : 'Attiva'}
                        </button>
                        <button onclick='activateSection(#{section.entityID})'>
                          Attiva
                        </button>
                      </div>"
                    }.join
                  end
                }
              </div>
              <button onclick='refreshList()'>Aggiorna Lista</button>
              <script>
                function toggleSection(sectionId) {
                  window.location = 'skp:toggleSection@' + sectionId;
                }
                function activateSection(sectionId) {
                  window.location = 'skp:activateSection@' + sectionId;
                }
                function refreshList() {
                  window.location = 'skp:refreshList@';
                }
              </script>
            </body>
            </html>
          HTML
      
          dialog.set_html(html)
        end
      end
      
      # Aggiungi una voce di menu per avviare lo script
      UI.menu("Plugins").add_item("Gestione Sezioni (Versione Aggiornata)") {
        SectionManager.show_dialog
      }
      

      puts "Script di gestione sezioni (versione aggiornata) caricato"

      posted in Developers' Forum
      alexpacio2013A
      alexpacio2013
    • RE: Request Section Management Panel

      @Rich-O-Brien I consider this function a basic function of the program I do not have an option to have those who develop plugins in Ruby create. A panel to manage sessions is essential as it is to manage levels to manage scenes to manage materials to manage components in practice it is a function in my opinion fundamental However if there is someone who wants to develop a plugin of this kind I am available to give my suggestions to implement the necessary functions

      posted in Developers' Forum
      alexpacio2013A
      alexpacio2013
    • Request Section Management Panel

      Hi, I’m asking you why Sketchup has never created a panel for managing sections, like tags, to be able to activate, deactivate, rename, delete them and if possible match them to scenes. I think this function is essential because I often find myself with many sections inside objects and components and managing them becomes complicated. There is the possibility of acting also with the structure panel but it is difficult to disentangle oneself within the subgroups. I think this is a fundamental function for sketchup and I don’t understand why no one has ever thought of it. Often to manage the activation of the sections I go through the vray panel. When a function like this

      Who is available to develop a Plugin that solves this problem?

      posted in Developers' Forum
      alexpacio2013A
      alexpacio2013
    • RE: [Plugin] Axyz - v1.1a - 8 June 24

      @Rich-O-Brien

      Compliments. 👍

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: thanks Thom..

      gym1.png gym2.png gym3.png spin4.png gym5.png

      posted in SUbD
      alexpacio2013A
      alexpacio2013
    • thanks Thom..

      Re: SubD examples and models

      car3.jpg car3c.jpg car3h.jpg car3f.jpg

      posted in SUbD
      alexpacio2013A
      alexpacio2013
    • RE: SCFLicense: Extension Licensing on Sketchucation

      Hi cold today I have this problem with the ThruPaint license. I tried to reinstall the license but it gives me an error that it has expired and in my panel I can't find the TruPaint license. It seemed to me I seemed to have a validated Unlimited license. What should I do, thank you

      SketchUp_tc39P6a13x.png SketchUp_wXfxCbeaej.png SketchUp_uaaWH7gHtC.png SketchUp_dt1w5ZcuIX.png

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @fredo6 said in Curviloft and sketchup 2024 problem:

      @alexpacio2013

      The problem should be fixed with the new version LibFredo6 v14.4c, just published.

      Many thanks for signaling the bug and providing the model.

      Perfect, thanks for the quick resolution of the problem

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Sketchup 2024 crashes on startup.

      @TIG
      Seems to have solved it thanks to your suggestion of sketchup restore. If the problem returns I'll let you know, thanks

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @fredo6
      For information, round with corner, it also works perfectly on SketchUp 2024
      SketchUp_0oTrcCMHES.jpg

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @fredo6
      Try the same object with Fredocorner on sketchup 2022 and sketchup 2024.
      here is the file
      Fredocorner.skp

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @fredo6 said in Curviloft and sketchup 2024 problem:

      The issue should be fixed with LibFredo6 v14.4a, just published.

      SketchUp_dXn7mQonLM.jpg

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @fredo6 said in Curviloft and sketchup 2024 problem:

      The issue should be fixed with LibFredo6 v14.4a, just published.

      the problem remains with the Fredo Corner, which in the 2024 version behaves very strangely, look at the differences between 2022 and 2024.
      Perhaps a different algorithm is needed here too.
      sketchup_smwdeb0kcv (1).jpg

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • Sketchup 2024 crashes on startup.

      Often when sketchup 2024 is started for the first time, the program crashes, then I restart again and sketchup starts normally without stability problems. Is it possible to know why it crashed? Is there a log to view? Maybe it's a plugin incompatibility.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @fredo6
      Congratulations for your fast support, now only one miracle is missing, Lordofthetoolbars compatible with su2024, for me it is indispensable, try to convince the people at trimble to solve the problem.
      Thank you

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @fredo6
      I have some good news to give you, with the new library it seems to work very well even with 2024. I hadn't restarted sketchup, which is why it wasn't working well. Now I've done some tests and everything seems to work correctly.

      SketchUp_6iknn8w5sd.png

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @fredo6
      For information I tried to insert the squares perpendicular to each node manually and then instead of using the follow me I used And as you can see the finished shape is correct so it is an axis problem at each node. Always with su 2024 and the library you updated

      Senza titolo-1.jpg

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @alexpacio2013 SketchUp_fV1Yuuz3IL.jpg

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      @fredo6
      Now there is no longer the error that prevented us from moving forward but the result is wrong look at the result 2024 is deformed, it is not correct, while with 2022 the object is perfectly formed

      sketchup_fv1yuuz3il-resized.jpg

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Curviloft and sketchup 2024 problem

      link files

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • 1 / 1