The SketchUpAPI & LayOutAPI 2017 SDK Bug!


#1

Hi everyone:
1: I download the Sketchup2017 and LayOut sdk.
2: I build the RubyExampleCreateLayOut project. the ruby lib is 2.2.4, build project no error.
3: I copy the CreateLayOutExample.so and createLayOut.rb to Sketchup2017 plugins folder
4: Start Sketchup 2017
5: Click the CreateLayoutExample command
the error code is:

Error: C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Users/ding/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/createLayOut.rb:29:in `run'
C:/Users/ding/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/createLayOut.rb:109:in `block in <module:CreateLayOutExample>'
SketchUp:1:in `call'


#2

It looks like there is a regression in SU2017 where SketchUpViewerAPI.dll is missing from the SketchUp installation directory.

As a work-around users can copy the file from C:\Program Files\SketchUp\SketchUp 2017\LayOut to C:\Program Files\SketchUp\SketchUp 2017 and the sample should work again.

Can you see if the example works for you by copying over the DLL?

This issue has been filed internally and we’ll get it updated in next release.


Problems with the RubyExampleCreateLayOut
#3

Great,the plugin can works;
Thanks for your help!