Skip to content

Adding SLAPI to Visual Studio

thomthom edited this page Mar 17, 2014 · 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. http://www.sketchup.com/intl/en/developer/sdk_start.html

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 32bit x86 sub-folder since we use SLAPI within SketchUp's 32bit process.
  6. Configuration Properties > Linker > Input
    Add slapi.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