The base for this is a Ruby C Extension.
- Open the
Properties Pages
for the project.
- Add
<SDK_PATH>\headers
toC/C++ / General / Additional Include Directories
Important! You must link against sketchup.lib
when using the Live C API. If you link against SketchUpAPI.lib
it might appear to work in many case, but it will at some point lead to crashes or invalid models.
Beware that if you use symbols introduced in a newer version on an older SketchUp version it will not work. Consider linking against the SDK binary matching the version of the oldest SketchUp version you support, that way you catch missing symbols during compile-time.
- Add
<SDK_PATH>\binaries\sketchup\x64
toLinker / General / Additional Library Directories
. - Add
sketchup.lib
toLinker / Input / Additional Dependencies
.