sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Clear the ruby console window mem how to

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 5 Posters 1.0k Views 5 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.
    • M Offline
      motish5
      last edited by

      when I load a rb file in the ruby console windows,hoe can I remove a func which was loaded by the file?
      I mean, when i run a script, and after the running i change the source of the script, even if I load again by "load" command, the change I have done, doesnt take affect
      What to do?

      1 Reply Last reply Reply Quote 0
      • tbdT Offline
        tbd
        last edited by

        are you sure ? the methods should be redefined. what is your code that are you are trying ?

        SketchUp Ruby Consultant | Podium 1.x developer
        http://plugins.ro

        1 Reply Last reply Reply Quote 0
        • daikuD Offline
          daiku
          last edited by

          Anything inside this kind of code:

          if( not file_loaded?("motish.rb") )
          ...
          end
          

          won't get reloaded. I have another guess, though. Are you running Vista?

          Clark Bremer
          http://www.northernlightstimberframing.com

          1 Reply Last reply Reply Quote 0
          • T Offline
            todd burch
            last edited by

            Depending on what you changed, your change may or may not take affect.

            If you changed a menu specification, you have to quit and restart SketchUp.

            Generally, if you change the code within a method, you can just reload the script.

            Sometimes, when you change a class definition, you'll have to reboot SketchUp.

            Todd

            1 Reply Last reply Reply Quote 0
            • R Offline
              RickW
              last edited by

              Also, webDialog callback actions don't get changed if you have persistent instances that call the dialog.

              RickW
              [www.smustard.com](http://www.smustard.com)

              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