Google skethcup

Google SketchUp Ruby API

Steps to complete the installation and Demo :

1. Install Google SketchUp
2. Install Ruby
3. Create a script file named as googlesketch.rb

   UI.messagebox('Woooo!! Welcome to  Google Sketch World......')

4. Save it in the Plugins folder
 ("c:\Program Files\Google\Google SketchUp [n]\Plugins")

5. To run our plugin we simply need to start Sketchup 
(or restart, if it's already open.) 

6. If everything went well you'll see "Woooo!! 
Welcome to Google Sketch World......" every time
 you start the program.This one line of code uses 
the UI module's messagebox method to show the alert
 box. UI is one of the "big three" modules that
 provide hooks for manipulating SketchUp with Ruby.
 The other modules are SketchUp and Geom. 
We'll learn more as we go through the other tutorials.

Conclusion

Congratulations! You've successfully written your first SketchUp Plugin.

For more Details -->  http://code.google.com/apis/sketchup/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s