sketchucation logo sketchucation
    • Login
    1. Home
    2. bdbox
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: [Plugin] Hidden Manager (08.Feb.2015)

      @thomthom said:

      Henry:
      mx_hiddenmanager = SketchupExtension.new "Hidden Manager", File.join ("mx_hidemanager","mx_hidemanager.rbs")

      This can confuse Ruby - you have space after the method name and the brackets. ( File.join ) On top of that you have that as one of the argument of another method call ( SketchupExtension.new ) where you don't use brackets.

      To avoid potential errors, always use brackets. But most important of all, never leave a space between the method name and the brackets.

      It's a bit odd that a SU7 user should report this error, because SU8's ruby is more strict. Regardless, this should work:
      mx_hiddenmanager = SketchupExtension.new( "Hidden Manager", File.join("mx_hidemanager","mx_hidemanager.rbs") )

      i got this error:

      No such file to load -- mx_hidemanager/mx_hidemanager.rbsError Loading File mx_hidemanager_loader.rb
      No such file to load -- mx_hidemanager/mx_hidemanager.rbs

      posted in Plugins
      B
      bdbox
    • RE: [Plugin] Hidden Manager (08.Feb.2015)

      Error Loading File mx_hidemanager_loader.rb
      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/mx_hidemanager_loader.rb:58: syntax error
      mx_hiddenmanager = SketchupExtension.new "Hidden Manager", File.join ("mx_hidemanager","mx_hidemanager.rbs")
      ^
      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/mx_hidemanager_loader.rb:58: syntax error
      mx_hiddenmanager = SketchupExtension.new "Hidden Manager", File.join ("mx_hidemanager","mx_hidemanager.rbs")
      ^
      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/mx_hidemanager_loader.rb:58: syntax error

      posted in Plugins
      B
      bdbox
    • 1 / 1