OnSaveModel Observer
-
The
on(|Pre|Post)SaveModelobservers 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.pathis always the path of the currently opened model, not of "Save as..." or "Save copy as...".Any ideas?
-
Does any of this debate help?
http://forums.sketchucation.com/viewtopic.php?f=180&t=40776&p=361393&hilit=onsave+timer#p361393 -
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.)
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 LoginAdvertisement