sketchucation logo sketchucation
    • Login
    1. Home
    2. marcosyu26
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Close a WebDialog, THEN execute ruby code?

      I did some workaround on this behavior by adding an event listener on the dialog box via JS. This way the callback will be triggered.

      
       window.addEventListener("beforeunload", function (e) {
          sketchup.focus_dialog()
        }, false);
      
      
      
          @dlg.add_action_callback('focus_dialog') do |ac|
            @dlg.bring_to_front
          end
      
      
      posted in Developers' Forum
      M
      marcosyu26
    • 1 / 1