tabletapi.blogg.se

Google sketchup code
Google sketchup code













google sketchup code

Below is some sample code to get you started. It is a good idea to a) use SketchUp’s extension system and b) wrap your plugin in a Ruby Module. Mac: /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/ Plugin Template

google sketchup code

Windows: C:\Program Files\Google\Google SketchUp 8\Plugins\ my_plugin.rbz (compressed file)Īs a reference: SketchUp’s default Plugin installation folder can be found here (replace version number with current major version): The entire contents of the compressed file will get copied into SketchUp’s Plugins folder on installation. You can add as many other files and folders as necessary for your plugin. The following is a minimal sample file structure. To enable use of the RBZ-installer functionality, all files that make up a plugin must be packaged in one single compressed file (note that the RBZ file is simply a re-named ZIP file).

Google sketchup code install#

Packaging a plugin this way allows a user to easily install it from SketchUp’s Preferences dialog. The RBZ file format was introduced in Maintenance Release 2 of Version 8. You can then afterwards package your code in a plugin using the instructions below. This allows you to experiment with Ruby scripting. Also note that SketchUp has a C++ SDK (in case you intend to work with it from other software).Īlthough you can use any text editor to create a plugin, it might be a good idea to install my Ruby Code Editor plugin into SketchUp first. It is a basic template to get you started. The following concerns plugins written in Ruby (the programming language included with SketchUp’s free and Pro versions). You can also find great forums for discussion in the official Developer Forum or at SketchUcation. There are many tutorials, resources and forums available online that will help you get started.















Google sketchup code