pisuke / su2ds

Automatically exported from code.google.com/p/su2ds
0 stars 0 forks source link

Plugin error (loadFile) when using newer SketchUp version (SketchUp Make instead of Google sketchUp 8) #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. loadFile problem for the su2ds script in SketchUp
2. The wxSU plugin is fine
3.

What is the expected output? What do you see instead?
Normally (google SketchUp 8) the su2ds plugin works fine. But there seems to be 
a problem for the Sketchup Make version (the new one for personal/educational 
use) when loading the plugin,

What version of the product are you using? On what operating system?
su2ds plugin error for SketchUp Make on Windows 7.

Please provide any additional information below.

Original issue reported on code.google.com by martin.r...@gmail.com on 23 Oct 2013 at 4:17

GoogleCodeExporter commented 9 years ago

Complementing the informations above.

I'm trying to use SU2DS in SketchUp Pro 2013, and I'm also having problems 
loading the plug-in. Below, the message that appears (attached too): 

Error Loading File su2ds.rb 
undefined method `file_loaded 'for main: Object 

I'm using SketchUp Pro 2013 on Windows 7/64 bit. 

Is there any solution in perspective? 

Thanks.

Original comment by Bruno.ni...@gmail.com on 16 Jan 2014 at 12:11

Attachments:

GoogleCodeExporter commented 9 years ago
I also get the same error trying to use su2ds with the new SketchUp Make.

I have followed install instructions, the WxSU installs fine, and I unzip the 
su2ds.zip into the plugins folder but when I start SketchUp I get the same 
"Load Errors" dialogue box and nothing new appears under the plugin menu.

Is there a known work around for SketchUp Make, or does anyone know if you can 
still download the previous SketchUp 7?  Thanks

Original comment by gary.tho...@gmail.com on 27 Feb 2014 at 12:45

GoogleCodeExporter commented 9 years ago
I am also having this issue with the Pro version of SketchUp 2013 v13.0.4812. 
I'm on an Asus Windows 7/64 machine.

When SU opens I get 

"
undefined method for 'file_loaded?' for main:Object
C:/Program Files(x86)/SketchUp/SketchUp 2013/Plugins/su2ds.rb:202
"

Then I get the same error that Bruno captured.

Original comment by EcoJi...@gmail.com on 1 Apr 2014 at 3:56

GoogleCodeExporter commented 9 years ago
Any progress regarding this error?

Original comment by debcal...@gmail.com on 18 Mar 2015 at 1:43

maximeboulinguez commented 6 years ago

Hi,

For people having difficulties loading sketchup old su2ds.rb plugin on sketchup. -- work for Skecthup 13 PRO -- did not try other versions

I found this on sketchucation : https://sketchucation.com/forums/viewtopic.php?f=15&t=41055

The file_loaded?() method belongs to sketchup.rb If this hasn't been loaded before the vfs.rb script then you'll get the error. I assume you have few other plugins, since most of them would have already 'loaded' the sketchup.rb file's methods. The sketchup.rb file that is in Tools will auto-load after files in Plugins, but by then the damage is done as you script has failed. You can ensure that the method is already loaded before any other scripts in Plugins [that might need it] as they auto-load - make a new file in the Plugins folder called say #.rb (so that it's auto-loaded very early on) and edit it with Notepad and include the line require 'sketchup.rb' - this will ensure that the methods are loaded if they are not already, then your vfs.rb file should auto-load without that error [any other scripts that include require 'sketchup.rb' will function OK too, as only the first script to 'require' it loads it and the rest of them will skip it...].

An alternative would be to install a .rbz plugin prior the su2ds copy-paste in the plugins folder.

Hope it helps.