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

    Force Thumbnail to update?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 684 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.
    • daikuD Offline
      daiku
      last edited by

      My ruby script makes some drastic changes to the user's drawing (erasing most of it), then saves it to a file, then restores all the changes. The issue is that the thumbnail that's stored with the saved file does not reflect the changes made by the script. Any idea how to force the thumbnail to update before I save?

      I'm talking about the thumbnails that show up in folder listings, and preview images when using Sketchup's File | Open menu. Thanks, CB.

      Clark Bremer
      http://www.northernlightstimberframing.com

      1 Reply Last reply Reply Quote 0
      • T Offline
        todd burch
        last edited by

        And you ARE or ARE NOT doing a save_thumbnail?

        Todd

        1 Reply Last reply Reply Quote 0
        • daikuD Offline
          daiku
          last edited by

          Am Not. I thought Model.save_thumbnail was just to save a thumbnail to it's own jpg file. I'm talking about the one you see in the preview box when you do a File | Open, or if you turn on thumbnails in an explorer window.

          I think I may have found what I was looking for. There's an option under "Model Info | File" called "Redefine thumbnail on save". From what I can tell, the thumbnail only gets generated when you close the file, not when you save without closing, unless this option is turned on. I assume this is to improve performance on autosave, etc. Anyway, if I enable this option (manually), I get the behavior I want. Not sure if that option is available from within ruby. CB.

          Clark Bremer
          http://www.northernlightstimberframing.com

          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