-
Couldn't load subscription status.
- Fork 36
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 DirectoriesAdd the path to to SLAPI headers.
-
Configuration Properties > Linker > GeneralAdd the path to the binaries - remember to pick the correct bitness for your target SketchUp version.
-
Configuration Properties > Linker > InputAddSketchUpAPI.libto 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