sketchucation logo sketchucation
    • Login
    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

    Fresh active_view when click on menu item

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 522 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • icehuliI Offline
      icehuli
      last edited by

      Hi All,

      any one knows how to refresh the active_view immediately when one click on a menu button while the mouse does not entering the view window.

      What I try to do is to change the font size of view.draw_text by click on the menu buttons.
      Currently I can only see the effects after I move the mouse entering the view area. It is not a big issue. But it would be great that I can update the view immediately once I click on the menu button.

      Thanks

      I have tried:

      Sketchup.active_model.active_view.refresh
      

      It doesn't work.

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Try adding:

        Sketchup.active_model.active_view.invalidate
        
        

        ???

        TIG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement