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

    How to reload a extension loader file?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 3 Posters 10.2k 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.
    • W Offline
      wikii
      last edited by

      Hi all.

      I need to reload a rb file,But I get some error in the ruby control panel.

      "Extension loader file XXX.rb can not be loaded because an extension loader file with the same name was previously loaded."

      How to reload a extension loader file?

      thanks !

      wikii

      1 Reply Last reply Reply Quote 0
      • W Offline
        wikii
        last edited by

        need help!

        thanks!

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

          You'll have to restart SketchUp to get your Extension to be reformed.
          However, if you simply want to reload its main code file[s] from inside its folder, use:
          load "XXX/XXX_code.rb"
          Change it to suit the actual file-name...

          TIG

          1 Reply Last reply Reply Quote 0
          • W Offline
            wikii
            last edited by

            @tig said:

            You'll have to restart SketchUp to get your Extension to be reformed.
            However, if you simply want to reload its main code file[s] from inside its folder, use:
            load "XXX/XXX_code.rb"
            Change it to suit the actual file-name...

            I get it.
            thankyou,TIG。

            happy new year!

            wikii

            1 Reply Last reply Reply Quote 0
            • rami_lpmR Offline
              rami_lpm
              last edited by

              I use this.

              
              def self.reload()
              	Sketchup.send_action(CMD_RUBY_CONSOLE) 
              	load __FILE__
              	puts "reloaded #{__FILE__.to_s}\n"
              end
              
              
              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