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

rbz distro doesn't work with Google Sketchup (v8.0.11751) #76

Closed bunnymatic closed 11 years ago

bunnymatic commented 11 years ago

I recently tried to install the stl plugin on Google Sketchup 8. The rbz on Github looks pretty different from the stuff under /src. I had some success by just cloning the repo and putting the src/ files under /Library/Application Support/Google SketchUp 8/SketchUp/plugins.

if i look at the files in the .rbz

$ tar -tvzf ./sketchup-stl-1.0.0.rbz
-rwxrwxrwx  0 0      0         871 Oct 12  2012 sketchup-stl.rb
drwxrwxrwx  0 0      0           0 Oct 12  2012 sketchup-stl/
-rwxrwxrwx  0 0      0        6417 Oct 12  2012 sketchup-stl/jf_stl_importer.rb
-rwxrwxrwx  0 0      0         205 Oct 12  2012 sketchup-stl/loader.rb
-rwxrwxrwx  0 0      0       10044 Oct 12  2012 sketchup-stl/skp_to_dxf.rb

which does not match what's in src

Also, the error message from SketchUp is

 Error Loading File /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/sketchup-stl/skp_to_dxf.rb  wrong number of arguments (2 for 1)
 Error Loading File /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/sketchup-stl/loader.rb wrong number of arguments (2 for 1)
 Error Loading File sketchup-stl.rb    wrong number of arguments (2 for 1)

which makes me think the API or interface may have changed since you've built a new version of the rbz package.

I don't know if the rbz works for newer versions of Sketchup but it might be worth a look.

I'm running SketchUp 8 on an older Mac that's hasn't gotten to Mountain Lion (still running 10.6.8).

On the flipside, thanks for writing the plugin. I was happy to, at least, get an STL file from SketchUp.

Cheers.

thomthom commented 11 years ago

I thought we'd deleted the RBZ from the distro. It's out of date.

Get latest version from the Extension Warehouse.