SketchUp / sketchup-stl

A SketchUp Ruby Extension that adds STL (STereoLithography) file format import and export.
http://extensions.sketchup.com/content/sketchup-stl
MIT License
247 stars 68 forks source link

Export STL raises exception in Ruby Console #152

Closed geraintwhite closed 9 years ago

geraintwhite commented 9 years ago

Using SketchUp 6 under Wine.

I cannot get the export STL function to work, it shows this error in the console. Import from STL works fine.

Error: #<TypeError: cannot convert Hash into String>
C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/sketchup-stl/SKUI/window.rb:403:in `initialize'
C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/sketchup-stl/SKUI/window.rb:403:in `new'
C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/sketchup-stl/SKUI/window.rb:403:in `init_webdialog'
C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/sketchup-stl/SKUI/window.rb:193:in `show'
C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/sketchup-stl/exporter.rb:312:in `do_options'
C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/sketchup-stl/exporter.rb:326
C:/Program Files (x86)/Google/Google SketchUp 6/Plugins/sketchup-stl/exporter.rb:325:in `call'
Aerilius commented 9 years ago

Me neither when I dig out SketchUp 6. It seems the Hash argument for UI::WebDialog.new has been implemented in SketchUp 7 or 7.1 (documentation misses that, a case for SketchUp-Ruby-API-Doc).

And I wouldn't expect SketchUp or anybody to support that old versions, even I have it hard to support SU8, some tend to go 2014/2015 only. By the way, if you install latest Wine 1.7.x, you can also use Ruby 2.0 and SU2015 and SU2014.

geraintwhite commented 9 years ago

I can run 2013 with the latest wine version but with 2015 I get these errors:

err:module:import_dll Library mfc100u.dll (which is needed by L"Z:\\home\\geraint\\.wine\\drive_c\\Program Files (x86)\\SketchUp\\SketchUp 2015\\SketchUp.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\geraint\\.wine\\drive_c\\Program Files (x86)\\SketchUp\\SketchUp 2015\\SketchUp.exe" failed, status c0000135

Edit: Just needed to download the .dll file and copy it into system32. Now the export .stl dialogue is blank #150

geraintwhite commented 9 years ago

Developers don't support SketchUp versions below SketchUp 8