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

    Fredo6 Toposhaper on Mac

    Scheduled Pinned Locked Moved Plugins
    10 Posts 3 Posters 2.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
      Nopea
      last edited by

      Any experiences of using the Toposhaper plugin in SketchUp Pro 2019 on a Mac? The user interface is not working very well:

      Skärmavbild 2019-04-10 kl. 09.44.55.jpg

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

        @nopea said:

        Any experiences of using the Toposhaper plugin in SketchUp Pro 2019 on a Mac? The user interface is not working very well:

        Could you confirm you use the latest version (v2.5a).

        Also could you open the Ruby Console before launching TopoShaper, and check if there are errors displayed.

        Fredo

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

          The version is Toposhaper 2.5a and the Ruby console shows the following errors.

          Error: #<ArgumentError: incomplete format specifier; use %% (double %) instead>
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:in sprintf' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:in compute_show_text'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:841:in block in button_input_manage' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:2637:in draw_button'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3159:in block in draw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:in each'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:in draw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/lib6palette.rbe:74:in draw'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_toposhaper/toposhapercloudtool.rbe:753:in draw' Error: #<ArgumentError: incomplete format specifier; use %% (double %) instead> /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:in sprintf'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:in compute_show_text' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:841:in block in button_input_manage'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:2637:in draw_button' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3159:in block in draw'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:in each' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:in draw'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/lib6palette.rbe:74:in draw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_toposhaper/toposhapercloudtool.rbe:753:in draw'
          Error: #<ArgumentError: incomplete format specifier; use %% (double %) instead>
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:in sprintf' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:in compute_show_text'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:841:in block in button_input_manage' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:2637:in draw_button'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3159:in block in draw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:in each'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:in draw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/lib6palette.rbe:74:in draw'
          /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_toposhaper/toposhapercloudtool.rbe:753:in `draw'

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

            I tried changing the decimal separator in Mac, did not help.

            Is this a Mac issue, i.e. does the plugin work in SketchUp Pro 2019 in Windows?

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

              This error stems from the v2019 Ruby being more strict about its print-formatting.
              It's not MAC specific [I think].

              The method sprintf can be used to take a numerical value and reformat it into a string - e.g. curtailing a number to a specific number of decimal places, or adding a % suffix.

              This error seems to revolve around % percentage formatting.

              Here is an example that sets the string 'ps' from the float 'pc' to 1 decimal place, with a % suffix added - of what used to work and what's needed now with double %% not %...
              ps = sprintf("%.1f%", pc) ps = sprintf("%.1f%**%**", pc)
              So 1.2321 >>> 1.2%

              So I think that Fredo probably needs to trap for this issue, and then republish ?
              Unless of course he has already done so, and your current version is not up to date ?

              TIG

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

                This problem is fixed in v2.5b.

                Actually, I missed it, because the format string used in sprintfis defined separately, not in the sprintfstatement.

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

                  The issue has already been addressed in the release that was published yesterday 2.5b. I can confirm that at least the user interface seems to work both on Mac and Win running SketchUp Pro 2019 with no error messages printed in the Ruby console.

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

                    Would you be so kind to point me in the right direction regarding the following?

                    Toposhaper produces the actual terrain for which I have laser scanned data (a point cloud) from a laser scan from the air. Would you have any suggestions of how to visualise the height differences? I would somehow need to spot which sections of the terrain is e.g. in the range [33.00,33.25] meters and which in the range of [33.25,33.50] meters.

                    Creating isocontours with toposhaper seems rather straightforward. However, with e.g. 10 isocontours it is not possible to say which is which, e.g. that what sections the terrain are in the range [33.00,33.25]. Hence, I'm thinking of how to add colours to the faces between the isocontours.

                    I'm trying to figure out if this plugin could be used, https://forums.sketchup.com/t/colour-face-by-zheight-range/40883. Perhaps with some modifications. First, one must have faces to which colour can be added. Second, one must defines the colour space and add colour the the faces identified in step 1 based on their (average?) location on the z axis.

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

                      Further on Topographer on SketchupPro 2019, an issue present on both Mac and Win, pressing the exit button forces the triangles back to the model. Is this also on issue on older versions of SU? Would it be possible to rid of this feature?

                      I get no error messages.

                      So I would like to have this:

                      1.JPG

                      Put when I press the Exit tool I get this:

                      2.JPG

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

                        @nopea said:

                        Further on Topographer on SketchupPro 2019, an issue present on both Mac and Win, pressing the exit button forces the triangles back to the model. Is this also on issue on older versions of SU? Would it be possible to rid of this feature?

                        I get no error messages.

                        So I would like to have this:

                        [attachment=1:8obdu9lo]<!-- ia1 -->1.JPG<!-- ia1 -->[/attachment:8obdu9lo]

                        Put when I press the Exit tool I get this:

                        [attachment=0:8obdu9lo]<!-- ia0 -->2.JPG<!-- ia0 -->[/attachment:8obdu9lo]

                        The two modes can be toggled with the menu "Edit > Hidden Geometry".

                        I think TopoShaper just re-establish the Hidden Geometry mode that is in effect when you launch it.

                        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