sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Page UpDate problems

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 227 Views 4 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.
    • K Offline
      ktkoh
      last edited by

      My script creates a new page and adds several views of a component then finishes with

      Sketchup.active_model.active_view.camera.perspective = false
              Sketchup.send_action "viewFront;"
              Sketchup.send_action "viewZoomExtents;"
              Sketchup.send_action "pageUpdate;"
      

      However it often does not update the page view. If I select the page then the view shows as expected so the actions were applied except for the final update of the view.

      I had seen a comment here about how to fix this and had copied the info but now that I want to use it it's not where I can find it. Any Suggestions??

      Keith

      1 Reply Last reply Reply Quote 0
      • ppoublanP Offline
        ppoublan
        last edited by

        Just in case, (think you already done but...) did you try
        Sketchup.active_model.active_view.refresh ?
        Yours
        Pascal

        1 Reply Last reply Reply Quote 0
        • tt_suT Offline
          tt_su
          last edited by

          Have you tried using the methods on the View and Camera object directly instead of the send_actions?

          send_actions isn't the best to use ... personally I wish they weren't there. There should be proper API methods for them instead.

          1 Reply Last reply Reply Quote 0
          • K Offline
            ktkoh
            last edited by

            The view refresh worked. Thanks.

            Keith

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              As I recall from the last build cycle (2013,) the Sketchup::Page and Sketchup::Pages classes had issues filed on them regarding updates not working correctly. (As well as a bunch of feature addtions, by myself.)

              I'm not here much anymore.

              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