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

Disable_ui

Scheduled Pinned Locked Moved Developers' Forum
6 Posts 3 Posters 219 Views 3 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.
  • J Offline
    joshb
    last edited by 24 Oct 2011, 20:13

    The documentation for Model.start_operation mentions a disable_ui parameter that disables screen updates to speed up your code while youre making lots of updates to the model. Unfortunately its only available in 7.0+. Does anyone know of a way to accomplish this in 6?

    Thanks,
    Josh

    1 Reply Last reply Reply Quote 0
    • C Offline
      Chris Fullmer
      last edited by 24 Oct 2011, 20:17

      Nope, it was something they discovered in their code and fixed it for version 7. There is no way at all to do it in 6.

      6 is seriously old now though, any chance of upgrading?

      You can write a method to determine what version of SU the user is running, and then only set that variable if the user has 7+

      Chris

      Lately you've been tan, suspicious for the winter.
      All my Plugins I've written

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 24 Oct 2011, 20:19

        @joshb said:

        The documentation for Model.start_operation mentions a disable_ui parameter that disables screen updates to speed up your code while youre making lots of updates to the model. Unfortunately its only available in 7.0+. Does anyone know of a way to accomplish this in 6?

        Thanks,
        Josh

        Can't be done I'm afraid.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • J Offline
          joshb
          last edited by 24 Oct 2011, 20:24

          Thanks for the quick replies.

          I saw that the View class has an invalidate method that's available in 6, so I was hoping that there was some corresponding way to disable updates too... Now I'm curious, what's the purpose of having a way to force an update in 6 if there's no way to disable screen updates?

          1 Reply Last reply Reply Quote 0
          • J Offline
            joshb
            last edited by 24 Oct 2011, 20:26

            Do you think I could use the View.dynamic method for speeding things up when updating many elements in a large model?

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 25 Oct 2011, 06:48

              In SU6 you will not find any way to disable the UI from updating that gives any performance boost that is worth the optimisation effort. If you want to cut down the time, look at the Ruby code itself - find ways to make it faster. (See if there are places where a Hash can be used instead of an Array if you are doing lots of lookups, when manipulation selection and entities - use bulk methods that modifies many instead of single elements.)

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

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

              Advertisement