sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Getting error in Layer Manager v2

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 411 Views 2 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.
    • J Offline
      johnwmcc
      last edited by

      I have just downloaded, unzipped, and installed in the Plugins folder Didier Bur's Layer Manager v2, including the Layer Manager folder and its contents, as instructed in the PDF.

      It loads without error and displays the toolbar, but none of the buttons appear to do anything when clicked.

      In the Ruby Console, when I click (for example) the first button 'Set layer of selection current', I get this error message:

      Error: #<NameError: undefined local variable or method lm_set_current' for main:Object> D:/Program Files/Google/Google SketchUp 6/Plugins/layer_manager_extension_v6.rb:33 D:/Program Files/Google/Google SketchUp 6/Plugins/layer_manager_extension_v6.rb:33:in call'

      I have tried it both with nothing selected in the drawing, and with an object selected - same error message, and nothing happens. And similar messages appear for a few other buttons that I tried - 'undefined local variable or method ...' with different names corresponding to the different buttons.

      A Google search for the error message turns up nothing, either in this forum, or the wider Internet.

      The only two things I can think of that are not entirely standard in my installation of Sketchup, are that it is installed on the ๐Ÿ˜ง drive, not the ๐Ÿ˜„ drive; and that I had an educational Pro licence, which I have not renewed - but I thought that merely reverted the program to behave like the free version.

      I have tried to look in the \Plugins\layer_manager_v6.rb script to see if that would point me in the right direction, but is is encrypted.

      Any suggestions, please, for what might be preventing this from working? I have a good number of other Ruby scripts, which all seem to work fine. And I used the earlier version of Layer Manager and found it very useful, so would really like to get this to work.

      Thanks if anyone can point me in the right direction to fix this. I can do simple Ruby scripting, but not enough to diagnose this error.

      John McC

      1 Reply Last reply Reply Quote 0
      • J Offline
        johnwmcc
        last edited by

        I posted earlier about a problem in getting Layer Manager to do anything after apparently successful installation.

        I had to reinstall Sketchup for other reasons, and I find that Layer Manager now works. So perhaps something had gone missing, either in the built-in files that Layer Manager uses, or in the Windows Registry.

        Anyway, problem solved.

        John McC

        1 Reply Last reply Reply Quote 0
        • Didier BurD Offline
          Didier Bur
          last edited by

          Hi,
          Try to replace the min script in your plugins folder with the attached one. I have found a small glitch that may cause the command "lm_set_current" to bug.
          No sure if it will solve the problem, but...

          P.S.: nothing to do with an install on D:/ instead of C:/


          layer_manager_extension_v6.rb

          DB

          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