Rotate Plan View - Updated for 2024
-
Re: [Plugin] (TIG) Rotate Plan View v1.1 20110316
Hi TIG,
This plugin of yours was a gem!
Unfortunately it doesn't work with sketchup 2024.... Any update soon?
Thank you. -
First report of an issue - I'll investigate...
-
It's too simple, edit the plugin file with notepad like this:
open a terminal with command "cmd", and copy the code, mouse right click or Ctrl + V to paste the code into the terminal.
notepad.exe "%HOMEPATH%\AppData\Roaming\SketchUp\SketchUp 2024\SketchUp\Plugins\Rotateplanview.rb"
find and remove the 's' from Line 76,
change "if File.exists?" to "if File.exist?" and save it.reboot your SU 2024, it's ok now.
-
It was indeed File.exist? v File.exists? which had worked side-by-side for decades, but in v2024's Ruby only the former works !
This has affected lots of older or lesser used plugins...
v2.0 is now available in the PluginStore.
The exist? issue was easily done but I also fixed somethings that were archaic in the 13 year old code - like not having its own proper namespace etc.
Its RBZ is also now signed etc.
Get it here ...
https://sketchucation.com/pluginstore?pln=Rotateplanview -
Yes, in SU 2024, not only File.exists? is removed, Fixnum in SU 2024 raise errors too.
see Ruby 3.2 full release notes here:
https://github.com/ruby/ruby/blob/v3_2_2/NEWS.mdWe fixed in our plugins like this:
# Fix undefined method `exists?' error for Dir:Class, File:Class # see: https://github.com/ruby/ruby/blob/v3_2_2/NEWS.md # Removed methods: # Dir.exists? [Feature #17391] # File.exists? [Feature #17391] Dir.respond_to?(:exists?) || Dir.singleton_class.alias_method(:exists?, :exist?) File.respond_to?(:exists?) || File.singleton_class.alias_method(:exists?, :exist?) defined?(::Fixnum) || Kernel.const_set(:Fixnum, Integer)
-
@zfjoy520
Also some URI stuff is FUBAR in v2024 too...
Advertisement