-
Notifications
You must be signed in to change notification settings - Fork 35
Adding SLAPI to Visual Studio
thomthom edited this page Mar 17, 2014
·
2 revisions
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
- Open the Visual Studio solution.
- Open the Properties for the SUEX_HelloWorld project.
- Make sure to select all the configurations.
-
Configuration Properties > C/C++ > Additional Include Directories
Add the path to to SLAPI headers. -
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. -
Configuration Properties > Linker > Input
Addslapi.lib
to Additional Dependencies. - 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.
- Build and Run