-
Notifications
You must be signed in to change notification settings - Fork 33
Adding SLAPI to Visual Studio
Thomas Thomassen edited this page Dec 7, 2017
·
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. C API SDK at SketchUp Developer Center
- 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 correct bitness for your target SketchUp version. -
Configuration Properties > Linker > Input
AddSketchUpAPI.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