Ruby Command to shutdown Sketchup

62 views
Skip to first unread message

Zeeshan

unread,
Apr 16, 2008, 5:11:17 AM4/16/08
to Google SketchUp Help - Ruby ideas
Hi All,

I need a ruby command which can close Sketchup.

Thanks a lot in advance,
Regards,
Zeeshan

Todd Burch - Katy, Texas

unread,
Apr 16, 2008, 4:54:06 PM4/16/08
to Google SketchUp Help - Ruby ideas
I need new tires on my truck.

Can you be a bit more specific? Any command that would shut down
SketchUp would have to be a system command, therefore, you are either
Windows or Mac. Do tell.

Are you wanting this to be executed from within a Ruby script called
by SketchUp, or a Ruby script that runs outside of SketchUp?

Why do you want to shut SketchUp down programatically?

zeeshanzia84

unread,
Apr 17, 2008, 5:54:02 AM4/17/08
to Google SketchUp Help - Ruby ideas
Yes I want the Ruby script to shut down Sketchup, after it is done.

On Apr 16, 10:54 pm, "Todd Burch - Katy, Texas"

Todd Burch - Katy, Texas

unread,
Apr 17, 2008, 7:40:23 AM4/17/08
to Google SketchUp Help - Ruby ideas
There's no supplied SketchUp API method to do this, so you'll have to
experiment entering your operating system commands from Ruby to end
SketchUp. Not at all a clean way of doing it.

If on a Mac, you could do this by calling an Applescript. On Windows,
perhaps through calling a WSH script.

Greg Ewing

unread,
Apr 18, 2008, 7:00:24 PM4/18/08
to sketch...@googlegroups.com
It's not one of the documented actions, but the following
works for me in MacOSX:

Sketchup.send_action("terminate:")

--
Greg

Don Butler

unread,
May 10, 2008, 7:03:10 PM5/10/08
to Google SketchUp Help - Ruby ideas
I guess I'm missing something.

What's wrong with clicking the "X" in th eupper right hand corner of
the screen?

It works for me every time.

????????????

Don.
Reply all
Reply to author
Forward
0 new messages