sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    OnSaveModel Observer

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

      The on(| Pre| Post) SaveModel observers are also triggered when SketchUp autosaves. From the transmitted argument ( model) it seems I can't distinguish between auto-saves and manual saves, and more important, I can't get the path of the saved file.

      model.path is always the path of the currently opened model, not of "Save as..." or "Save copy as...".

      Any ideas?

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Does any of this debate help?
        http://forums.sketchucation.com/viewtopic.php?f=180&t=40776&p=361393&hilit=onsave+timer#p361393

        TIG

        1 Reply Last reply Reply Quote 0
        • A Offline
          Aerilius
          last edited by

          Thanks! That should work for most cases.
          (But it still would be nice to have a second argument with the file path, since the model.path is not necessarily linked with the location where the file (a copy) was saved.)

          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