Categories

Wednesday, 6 March 2013

Your plugin files

So before we start writing our Sketchup plugin, let's see what files will we need. I have prepared for myself a template with all the files that will be used, I just have to copy it, change the names and start writing. It looks like that:
In the Sketchup main directory there is a Plugin folder. inside You will find a ruby file named 'sketchup.rb'. This file is very important and it will be called by other ruby files in our plugin.

Inside the template there are two ruby files, one is 'Your_Plugin_Loader.rb' and is used to load your plugin while Sketchup is starting. The other one is 'Your_library.rb'. Here we will write all the functions that will be needed on our way. In the template is located also a folder named Your_plugin, and inside You will find three files (later it can be more).
These are an graphic file with icon, 'Your_plugin_base.rb' ruby file which is a definition of toolbars and menus, and also 'Your_plugin.rb' where we will write our plugin definition.

To be continued...


No comments:

Post a Comment