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

Clear the ruby console window mem how to

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 5 Posters 968 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.
  • M Offline
    motish5
    last edited by 17 Sept 2008, 13:16

    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
    • T Offline
      tbd
      last edited by 17 Sept 2008, 14:55

      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
      • D Offline
        daiku
        last edited by 17 Sept 2008, 14:59

        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 17 Sept 2008, 15:08

          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 17 Sept 2008, 16:40

            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
            1 / 1
            • First post
              1/5
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement