Hello all!
I’m trying to create a script that will automatically save my file to 2017 from my 2019 Pro version of Sketchup. Though it’s easy enough to manually do a Save as…, or come up with a script that does this on command, I’m trying to idiot-proof the process by doing this without having to consciously think about it.
I’ve been trying out the ModelObserver (my first foray into Observer objects) without much luck - I have the observer trigger my save to 2017 every time the model tries to save, which triggers the observer again, and I end up in a loop.
I tried to get past this by using a system of “flags” via Module variables to creat conditional statements to prevent the infinte loop, but still couldn’t figure it out.
My latest attempt tries to remove the ModelObserver when it’s time to do the 2017 save, and re-add it to the model for subsequent saves, but this somehow causes another kind of existential crisis that results in a Sketchup crash.
Anyone have any thought? Thanks for your time!