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!
    🚨 Skimp | 25% Off until March 30 Buy Now

    Page UpDate problems

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 315 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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better πŸ’—

              Register Login
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement