• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

How to reload a extension loader file?

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 3 Posters 10.2k Views
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 19 Nov 2018, 07:39

    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 31 Dec 2018, 15:37

      need help!

      thanks!

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 31 Dec 2018, 16:01

        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 31 Dec 2018, 22:39

          @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
          • R Offline
            rami_lpm
            last edited by 14 Jun 2019, 13:05

            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