sketchucation logo sketchucation
    • Login
    1. Home
    2. marcosyu26
    ℹ️ 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

    marcosyu26

    @marcosyu26

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    marcosyu26 Unfollow Follow
    registered-users

    Latest posts made by marcosyu26

    • 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