• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

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 12 Mar 2014, 19:14

    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
    • P Offline
      ppoublan
      last edited by 12 Mar 2014, 22:44

      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
      • T Offline
        tt_su
        last edited by 13 Mar 2014, 10:03

        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 13 Mar 2014, 12:16

          The view refresh worked. Thanks.

          Keith

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dan Rathbun
            last edited by 13 Mar 2014, 21:06

            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
            1 / 1
            • First post
              4/5
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement