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...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement