home *** CD-ROM | disk | FTP | other *** search
/ Freelog 100 / FreelogNo100-NovembreDecembre2010.iso / Graphisme / GoogleSketchUp / GoogleSketchUpWFR.exe / GoogleSketchUp8.msi / SketchUpMeta.cab / utilities.rb.78D17A5F_0E0A_44D2_877D_2C56D45D16B7 < prev    next >
Encoding:
Text File  |  2010-08-26  |  1.1 KB  |  27 lines

  1. # Copyright 2005-2008, Google, Inc.
  2.  
  3. # This software is provided as an example of using the Ruby interface
  4. # to SketchUp.
  5.  
  6. # Permission to use, copy, modify, and distribute this software for 
  7. # any purpose and without fee is hereby granted, provided that the above
  8. # copyright notice appear in all copies.
  9.  
  10. # THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
  11. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  12. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  13. #-----------------------------------------------------------------------------
  14.  
  15. # This adds some useful functions to the Utilities menu in SketchUp
  16. require 'sketchup.rb'
  17. require 'extensions.rb'
  18. require 'LangHandler.rb'
  19.  
  20. $uStrings = LanguageHandler.new("Utilities.strings")
  21.  
  22. utilitiesExtension = SketchupExtension.new $uStrings.GetString("Utilities Tools"), "Utilities/utilitiesTools.rb"
  23.                     
  24. utilitiesExtension.description=$uStrings.GetString("Adds Tools->Utilities to the SketchUp interface.  The Utilities submenu contains two tools: Create Face and Query Tool.")
  25.                         
  26. Sketchup.register_extension utilitiesExtension, false
  27.