To start …
You will need to use a SketchupExtension
registrar script and follow the Technical Details section for packaging a SketchUp extension …
I posted an example extension registrar script here …
And sign your extension …
You will also need to download the SketchUp C SDK.
-
SketchUp Developer SDK | SketchUp Extension Warehouse
You may be required to first register as a SketchUp Developer before downloading.
The SDK includes the docs, but they are also online here:
-
SketchUp C API: SketchUp C API
Be sure to fully read the main page.
These repositories can help show how a C/C++ extension can be written for SketchUp …
The Ruby interpretive programming language is implemented in C, so you can call Core Ruby and SketchUp Ruby API methods from C.
- PDF book: “Extending Ruby 1.9: Writing Extensions in C ” by Dave Thomas