sketchucation logo sketchucation
    • Login
    1. Home
    2. zfjoy520
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    Z
    Offline
    • Profile
    • Following 5
    • Followers 0
    • Topics 0
    • Posts 2
    • Groups 2

    zfjoy520

    @zfjoy520

    Newcomers
    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    5
    Following
    Joined
    Last Online
    Age 41
    Location China

    zfjoy520 Unfollow Follow
    Newcomers registered-users

    Latest posts made by zfjoy520

    • RE: Rotate Plan View - Updated for 2024

      @TIG

      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.md

      We 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)
      
      posted in Plugins
      Z
      zfjoy520
    • RE: Rotate Plan View - Updated for 2024

      @Sl-m

      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.

      posted in Plugins
      Z
      zfjoy520