sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Debug Traces in Sandbox From Contours

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 402 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.
    • fredo6F Offline
      fredo6
      last edited by

      Inadvertedly, I discovered that in SU 7.1, the From Contourfunction of the Sandbox displays some traces in the Ruby console.

      Here is a small video showing it (I also enclosed the result of the operation with Curviloft. Note that TIG's ExtrudeByRail would produce the same result as Curviloft).
      Trace From Contours.gif

      Here is the trace of "from Contour"

      
      activated
      Getting Sel Edges
      In get sel edges
      @ss.length=53
      @totalEdges=53
      @avgLength = 11.0872419649578
      Starting work
      In EdgesToPtArray
      @ptSet.length=87
      In CreateTerrain
      pushing 1 on the end
      removing non-functional
      triangulating
      adding points
      adding polygons
      done
      
      

      Is anyone aware of that, or is it just me?

      Fredo

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Yea - sandbox tools are quite verbal.

        And there are others: Right clicking on model axis, or outside any geometry while inside a group/component:
        Error: #<LocalJumpError: return from proc-closure> C:/Program Files (x86)/Google/Google SketchUp 7/Tools/WebTextures/webtextures_loader.rb:894:incall'`

        And if you start SketchUp with the argument that routes the Ruby Console to file: "C:\Program Files (x86)\Google\Google SketchUp 7\Sketchup.exe" > myRubyLog.txt

        There is a great number of "free_Command" lines - this appear with no plugins installed.

        Incidentally, there's quite a few startup warnings from your plugins Fredo.


        myRubyLog.txt

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • fredo6F Offline
          fredo6
          last edited by

          @thomthom said:

          Incidentally, there's quite a few startup warnings from your plugins Fredo.

          Tom,

          Thanks. The ones for BZ may have disappeared in the new release of BezierSpline (you're still in version 1.2).
          The others with LibTraductor are inevitable, because, for compatibility reasons, I load twice LibTraductor code (the old file LibTraductor.rb for JoinPushPull and then the one from LibFredo6).

          Fredo

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            @unknownuser said:

            Thanks. The ones for BZ may have disappeared in the new release of BezierSpline (you're still in version 1.2).

            Ah - indeed I am. Thought I'd them all updated. πŸ‘

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              Still get messages:

              
              undefined method bz_ask_extras for BZ__BezierClassic in file bezierspline_main.rb
              
              
              
              undefined method bz_ask_extras for BZ__Polyline in file bezierspline_main.rb
              
              
              
              undefined method bz_ask_extras for BZ__Catmull in file BZ_Dir_13/BZ__Catmull.rb
              
              
              
              undefined method bz_ask_extras for BZ__Courbette in file BZ_Dir_13/BZ__Courbette.rb
              
              
              
              undefined method bz_ask_extras for BZ__CubicBezier in file BZ_Dir_13/BZ__CubicBezier.rb
              
              
              
              undefined method bz_ask_extras for BZ__FSpline in file BZ_Dir_13/BZ__FSpline.rb
              
              

              Thomas Thomassen β€” SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                Looks as though Sandbox tools also outputs stuff during startup:
                ` key = Units

                value = 2.0

                key = StampOffset

                value = 39.3700787401575

                key = GridSpacingX

                value = 19.6850393700787

                key = SmooveRadius

                value = 157.48031496063

                key = GridSpacingY

                value = 19.6850393700787`

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • Dan RathbunD Offline
                  Dan Rathbun
                  last edited by

                  @unknownuser said:

                  The others [warnings] with LibTraductor are inevitable, because, for compatibility reasons, I load twice LibTraductor code (the old file LibTraductor.rb for JoinPushPull and then the one from LibFredo6).

                  When you next update the LibFredo6.. you can suppress the warnings when you know that your about to redefine old methods.

                  Save $VERBOSE to a reference, then set $VERBOSE to nil (silent mode,) when done overriding methods, reset $VERBOSE back to what it was. MAKE SURE YOU SET IT BACK !! (or some peeps may get angry.)

                  I'm not here much anymore.

                  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