sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Rotate Plan View - Updated for 2024

    Scheduled Pinned Locked Moved Plugins
    6 Posts 3 Posters 62 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Sl-m
      last edited by TIG

      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.

      TIGT Z 2 Replies Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator @Sl-m
        last edited by

        @Sl-m

        First report of an issue - I'll investigate...

        TIG

        TIGT 1 Reply Last reply Reply Quote 0
        • Z Offline
          zfjoy520 Newcomers @Sl-m
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator @TIG
            last edited by TIG

            @TIG

            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

            TIG

            Z 1 Reply Last reply Reply Quote 0
            • Z Offline
              zfjoy520 Newcomers @TIG
              last edited by

              @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)
              
              TIGT 1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator @zfjoy520
                last edited by

                @zfjoy520
                Also some URI stuff is FUBAR in v2024 too...

                TIG

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement