Skip to content

Adding SLAPI to Visual Studio

Thomas Thomassen edited this page Dec 7, 2017 · 2 revisions

Using SLAPI with Ruby C Extension

This short guide describe the steps for adding SLAPI to the Ruby C Extension examples in this repository.

Download the SketchUp C SDK and unpack it somewhere on your computer. C API SDK at SketchUp Developer Center

Step by Step

  1. Open the Visual Studio solution.
  2. Open the Properties for the SUEX_HelloWorld project.
  3. Make sure to select all the configurations.
  4. Configuration Properties > C/C++ > Additional Include Directories Add the path to to SLAPI headers.
  5. Configuration Properties > Linker > General Add the path to the binaries - remember to pick the correct bitness for your target SketchUp version.
  6. Configuration Properties > Linker > Input Add SketchUpAPI.lib to Additional Dependencies.
  7. Save the changes and you are now good to go. Try it out with the SLAPI examples provided in the documentation to verify the setup is working.
  8. Build and Run
Clone this wiki locally