sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    TIG Work Plane error report

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    7 Posts 3 Posters 1.1k Views 3 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.
    • N Offline
      nickchun
      last edited by

      Hi
      Just tried using the Work Plane plugin for the first time and this error comes up on starting SU.
      Plugin seems to still work okay though, unless I'm missing something.
      I'm still running SU2018, and I have Notepad++ if you can suggest a fix.

      Thanks
      Nick


      Capture.JPG

      1 Reply Last reply Reply Quote 0
      • S Offline
        slbaumgartner
        last edited by

        The errors are from parametric_grid.rb, not from TIG Work Plane. It is ancient and hasn't been updated for newer versions of Ruby. I don't think TIG Work Plane uses parametric grid. Just to confirm, I tried installing TIG Work Plane, and didn't get these errors.

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          As said... my WorkPlane is not parametric.
          And it has no connection with the unrelated parametric_grid.rb
          The error message you posted relates to that...

          I don't know this other plugin at all.
          But it seems to be setting up a hash - hence the {...}
          But its key/value pairs are shown rather oddly...
          They should be more like defaults = {"dx"=>8.feet, "dy"=>8.feet, etc...
          Later defaults["dx"] would be used to return the default length etc...

          TIG

          1 Reply Last reply Reply Quote 0
          • N Offline
            nickchun
            last edited by

            Humble apologies TIG 😳
            The error only occurred after I had installed Workplane, which was a freaky coincidence. I thought I'd broken it somehow as I know your plugins are usually solid. That also explains why it still works.
            Offending .rb now disabled=no more error
            Thanks for your time.

            Just dug this out of the .rb file though. Seems to be calling up to parametric.rb?
            Would this have anything to do with it? Can't understand where the error comes from


            grid.JPG

            1 Reply Last reply Reply Quote 0
            • S Offline
              slbaumgartner
              last edited by

              parametric_grid.rb does indeed require parametric.rb, but the error is in parametric_grid.rb, not parametric.rb. It has incorrect (obsolete?) syntax for initializing the defaults hash. TIG may have inserted that require statement, but that has nothing to do with Work Plane nor with the syntax error in parametric_grid.rb.

              1 Reply Last reply Reply Quote 0
              • N Offline
                nickchun
                last edited by

                Great Thanks, although I still don't know why the error suddenly started. It is possible I accidentally re-enabled Parametric Grid from the plugin manager at the time I was trying out Workplane. That would account for the coincidental timing and me jumping to the wrong conclusion.
                Is Parametric.rb still used for anything else? Unless its nested somewhere I don't seem to have it.

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  It's a VERY old script from @Last
                  It's in the PluginStore - together with parametric_grid...
                  https://sketchucation.com/pluginstore?pln=parametric

                  By now they are really 'example' code...
                  And therefore unlikely to work perfectly in newer versions...

                  TIG

                  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