Extension successful installation hook?

extension
api

#1

Hello – I’m working on a sketchup extension, and I’d like to open a onboarding window on successful installation. I don’t want the window to open every time the extension is loaded – only when it’s first installed. I haven’t seen any documentation for exposed “hooks” that I could tie into. I might have missed something, as I’m quite new to sketchup development.

Thanks so much!


#2

You could use Sketchup.write_default to save a value saying the dialog has been displayed, once it has been displayed.


#3

I do the same thing as @eneroth3, I check a FirstRun setting which I default to false. Then set it to true after displaying the welcome dialog. I use that for the Welcome dialog in SUbD.


#4

Awesome. Thanks so much, @eneroth3 and @thomthom!