sketchucation logo sketchucation
    • Login
    1. Home
    2. marcosyu26
    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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    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