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!
    Urasik Extensions | Lots of new extensions to check out Learn More
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 15
    • Posts 144
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @TIG I think I found it. Gemini gave me this solution and it works logically. The components will become unique, but it does exactly what I wanted. Since you're the expert, could you check if it works well?

      require 'sketchup.rb'

      module Visual_Scale_Applier
      def self.apply_scale_to_selection
      model = Sketchup.active_model
      selection = model.selection

      if selection.empty?
        UI.messagebox("Seleziona gli oggetti a cui vuoi 'fissare' la scala.")
        return
      end
      
      model.start_operation('Fissa Scala Corrente', true)
      
      selection.each do |entity|
        self.process_entity(entity)
      end
      
      model.commit_operation
      puts "Scala 'fissata' a 1.0 per la selezione e tutti i contenuti nidificati."
      

      end

      def self.process_entity(entity)
      return unless entity.is_a?(Sketchup::ComponentInstance) || entity.is_a?(Sketchup::Group)

      # 1. Se è un componente con più copie, lo rendiamo unico per non rovinare il resto del modello
      entity.make_unique if entity.is_a?(Sketchup::ComponentInstance)
      
      t = entity.transformation
      
      # Estrarre i fattori di scala correnti
      scale_x = Math.sqrt(t.to_a[0]**2 + t.to_a[1]**2 + t.to_a[2]**2)
      scale_y = Math.sqrt(t.to_a[4]**2 + t.to_a[5]**2 + t.to_a[6]**2)
      scale_z = Math.sqrt(t.to_a[8]**2 + t.to_a[9]**2 + t.to_a[10]**2)
      
      # Se la scala è già 1.0, non facciamo nulla su questo livello
      unless (scale_x - 1.0).abs < 0.001 && (scale_y - 1.0).abs < 0.001 && (scale_z - 1.0).abs < 0.001
        # 2. Creiamo una trasformazione di scala per la geometria interna
        internal_scaling = Geom::Transformation.scaling(scale_x, scale_y, scale_z)
        
        # 3. Trasformiamo la geometria interna (bordi, facce, etc.)
        entity.definition.entities.transform_entities(internal_scaling, entity.definition.entities.to_a)
      
        # 4. Resettiamo la scala del contenitore esterno a 1.0 mantenendo posizione e rotazione
        new_transformation = Geom::Transformation.axes(
          t.origin, 
          t.xaxis.normalize, 
          t.yaxis.normalize, 
          t.zaxis.normalize
        )
        entity.transformation = new_transformation
      end
      
      # 5. Entra ricorsivamente nei gruppi/componenti nidificati
      entity.definition.entities.each do |child|
        self.process_entity(child)
      end
      

      end
      end

      Esegui

      Visual_Scale_Applier.apply_scale_to_selection

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @TIG
      Is it necessary to repeat this operation for every single object? I need a single command to set the scale for all selected elements (including nested components and groups) with just one click. Otherwise, it would be faster to do it manually

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @TIG I've tried but it doesn't work. I'm attaching an image as an example where I've modified the scale of each cube and also the scale of a group that contains three cubes. In practice, I would like that once all objects are selected, I can define the scale for all of them, even those nested inside the group.
      SketchUp_UHigTqTTSx.png

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @TIG I didn't manage to do it. In your opinion it's not a useful function. I would need it. there is a solution

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      I’m not a programmer, and I don’t know Ruby. I tried using artificial intelligence to create a plugin, and it works, but only on main objects and components, not on nested ones.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • Is there a way to "define the scale" of a group of objects in SketchUp?

      Is there a way to "define the scale" of a group of objects or multiple selected components simultaneously, with the option to also scale nested objects and components? For me, it’s a useful command, but I haven’t found a solution.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      @fredo6
      And anyway, even with your script it works on the second opening of the Master toolbar manager panel. At the first opening, the Custom toolbar panel is not present.
      79c4d3c0-a338-4c89-a01c-5bcba232e81a-image.png

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      @fredo6 said in Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?:

      Traductor::ChromiumWdlg.dialog_info_reset 'LOTT_master'

      Yes, with your script it works but if I close SketchUp I have to launch your ruby script from the console.
      I don't have two monitors but I have one that is 3440x1440 wide.YawJC6h2uy.png

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      @fredo6
      I no longer see my toolbar window in the master toolbar manager, even though the toolbars work properly.
      Can anyone help me? Thanks.

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu? I tried resizing the window (both enlarging and reducing it), but the green bar still doesn’t appear. It was working correctly until a few days ago, so perhaps the recent freedo6Library update has modified something.
      ny6GZAu9SW.png

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Sketchucation Tools 5.0...

      @Dave-R Some plugins have caused me issues with updates, some I want to finish current projects before updating, while others I'm confident are useful updates.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Sketchucation Tools 5.0...

      Is it possible to add an option to not update a particular plugin in the updates list, meaning it should no longer show the update for that plugin and display it with a flag?

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: [Plugin Library] LibFredo6 - v15.9b - 21 Apr 26

      @fredo6 After three days of work to figure out what was causing SketchUp to crash, I discovered that there's an incompatibility between the S4U plugins and the new Fredo libraries. Now I have the 2026 version working perfectly.

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: [Plugin Library] LibFredo6 - v15.9b - 21 Apr 26

      Dopo tre giorni passati a Cercare il colpevole l'ho trovato. In pratica sono i plugin di S4U che mandano in crash sketchup in quanto vanno in conflitto con Fredolib.

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: [Plugin Library] LibFredo6 - v15.9b - 21 Apr 26

      I tried deleting all the Fredo plugins and SketchUp starts up normally. If I install only LibFredo, I've tried both the latest version LibFredo6_v15.5a and the previous version LibFredo6_v15.4c and SketchUp crashes on startup.
      Until a few days ago everything was working perfectly without problems, I only installed the new Sketchucation and apart from SketchUp 2026 which shouldn't affect my already installed SketchUp 2025 unless it installs something in common with SketchUp 2025 as well

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: [Plugin Library] LibFredo6 - v15.9b - 21 Apr 26

      @fredo6 windows 11

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: [Plugin Library] LibFredo6 - v15.9b - 21 Apr 26

      @fredo6 In practice, SketchUp closes without any warning or message. If I disable the Fredo library, SketchUp starts normally, but of course, the Fredo plugins — which are essential for me — do not work.

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Sketchucation Tools 5.0...

      @TIG Nothing to do, I installed FredoLib5 02 and now SketchUp 2024, 2025, and 2026 all freeze. I don’t know what to do anymore — the programs close automatically right after startup without showing any message. I have no idea what to do, and it’s essential for me, especially Lord of the Toolbars, because of my issues — I simply can’t do without it anymore. If I delete the FredoLib5 folder, SketchUp starts again, but of course without all the plugins connected to Fredo. I also tried installing an older version (15.4e), but it still won’t start. Help.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: [Plugin Library] LibFredo6 - v15.9b - 21 Apr 26

      @fredo6 I installed this new version on sketchup 2025 and everything crashes. How can I go back to the previous version?

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Any good tutorials on BEVEL gear design in SU?

      I have no problem signing an NDA; it’s not that I’m an engineer or an expert in complex calculations. I have some experience and wherever I can, I help you, especially with the drawing, so don’t worry. If you can tell me which sector the idea is in, maybe it has been one of my experiences. My email is [Redacted]@gmail.com.

      posted in SketchUp for 3D Printing
      alexpacio2013A
      alexpacio2013
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 2 / 8