Sketchup 8 to 2015 Plugins
-
Hello,
We recently moved our users from another program to running SketchUp 8. I went to 8 instead of the newest version because I was on a dead line to find a program to move to. I didn't go with a later version of sketchup because I was running into some issues with moving the plugins we had in 8 to the newest version. How ever now that that are running SketchUp I would like to move to the latest version and have more time to work on this. I was able to get half of the plugins to move over by just moving the plugins folder and enabling custom toolbars. Some of the plugins don't seem to work and I am getting the following debug message when SketchUp loads. I have been doing my best with the little knowledge of Ruby to find fixes for these but cant seem to figure them out.
Here is what I get when I load SketchUp 2015 any help would be appreciated.
Error Loading File C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/kmlTools/kmlTools_loader.rb
Error: #<SyntaxError: C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/kmlTools/kmlImport.rb:103: formal argument cannot be an instance variable
@dlg.add_action_callback("init"){|@dlg, param|
^
C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/kmlTools/kmlImport.rb:133: formal argument cannot be an instance variable
@dlg.add_action_callback("receiveJson") {|@dlg, json|
^>
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:inrequire' C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in
require'
C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/kmlTools/kmlTools_loader.rb:2:in<top (required)>' C:/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb:197:in
require'
C:/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb:197:inload' C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/kmlTools.rb:17:in
register_extension'
C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/kmlTools.rb:17:in<top (required)>' Error Loading File C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars/files/loader.rb Error: #<LoadError: cannot load such file -- dynamiccomponents.rb> C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in
require'
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:inrequire' C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars/files/sketchup/commands/componentOptions.rb:1:in
<top (required)>'
C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars/files/loader.rb:33:inload' C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars/files/loader.rb:33:in
block (2 levels) in <top (required)>'
C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars/files/loader.rb:18:ineach' C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars/files/loader.rb:18:in
block in <top (required)>'
C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars/files/loader.rb:14:ineach' C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars/files/loader.rb:14:in
<top (required)>'
C:/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb:197:inrequire' C:/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb:197:in
load'
C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars.rb:10:inregister_extension' C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/toolbars.rb:10:in
<top (required)>'
Error Loading File tt_texteditor.rb
Error: #<SyntaxError: C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_texteditor.rb:605: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
when ALIGN_LEFT: TextAlignLeft^
C:/Users/Nick/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/tt_texteditor.rb:1008: syntax error, unexpected keyword_end, expecting end-of-input
end # if TT_Lib^>
-
Do NOT simple copy the Plugins folder contents.
There were many updates to Plugins over the last year or more to suit Ruby2 - used since v2014.
You should install all available versions of your Plugins from the PluginStore...The SketchUcation PluginStore dialog lets you Auto-Install - you can copy a v2015 Plugins folder safely to another v2015 installation...
A very few Plugins have not been updated to suit Ruby2, so they are unlikely to work in v2015.
You can but test those that are not available in the SCF PluginStore, EWHouse etc and ask...If in doubt contact the Plugin's author directly...
Most of the mainstream authors have updated their scripts over the last year or so...
So those should be OK.Also, e.g. with his permission I have recently updated many of Didier Bur's scripts to suit all available SUp versions...
So those are definitely the ones to get...Browse the PluginStore to see the updates........
EDIT:
In the example error-code you provide the error is quite clearly explained...
@dlg.add_action_callback("init"){|**@dlg**, param|......
To fix it rename it 'dlg
', if it's used anywhere inside the{}
[which is unlikely] then change those references to match...I suspect that most of the other errors will be fixed by getting the proper [latest] versions of the scripts...
Advertisement