Detect if SU was started with a template or a model
-
I want to execute a script (create a title block) if SU was started without a model loaded. Is there a way in ruby to detect that?
-
Perhaps
Sketchup.active_model.path.empty?
istrue
if it's an unsaved SKP and then
Sketchup.active_model.modified?
istrue
if it's been changed at all...
-
Worked Perfectly. Thanks, Tig!
Advertisement