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

    Curious dialog box

    Scheduled Pinned Locked Moved Developers' Forum
    17 Posts 6 Posters 406 Views 6 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.
    • thomthomT Offline
      thomthom
      last edited by

      Looking close at the various send_action commands. Come across a couple that caught my attention, but I couldn't work out what they do:

      PolygonOffset.png
      Haven't been able to make this do anything...

      NonPlanarcheck.png
      Nor this. Wonder if it's part of Fix Problems check - or if it does something else. Might try it when I get a model that starts to create overlapping faces.

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

      1 Reply Last reply Reply Quote 0
      • T Offline
        tomot
        last edited by

        interesting!

        I wonder if there is a similar dialog box, that would allow a user to evaluate a simple division problem! instead of using the calculator?
        for example:
        total height 12' / no. of risers 18 = riser height 8 APPLY

        [my plugins](http://thingsvirtual.blogspot.ca/)
        tomot

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

          We've discussed this. Someone (I think Fredo6,) made an Arithmetic plugin I believe.

          Here's quick and dirty inputbox:

          def query_for_riser()
            value = ""
            title = "Riser"
            begin
              input = UI.inputbox(['input riser (or calc)  '],[value],title)
              return nil unless input
              riser = eval(input[0]).to_l
            rescue
              value = input[0]
              title = "Riser (Try again)"
              retry
            end
          end # def
          

          Type in "18.feet / 18" (without quotes)

          I'm not here much anymore.

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

            @dan rathbun said:

            We've discussed this. Someone (I think Fredo6,) made an Arithmetic plugin I believe.

            Ok I found the link:

            [Code] Parsing arithmetic formulas (Fredo6)

            I'm not here much anymore.

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

              @thomthom said:

              Nor this. Wonder if it's part of Fix Problems check - or if it does something else. Might try it when I get a model that starts to create overlapping faces.

              Sketchup.send_action 21476 # PC only
              is the equiv. of:
              Sketchup.send_action "fixNonPlanarFaces:" # cross-platform

              And is defined on a utility menu (which is not implemented in the release,) as "Fix Non Planar Faces".

              This is separate from "Validity Check" id 21124 (which doesn't have a cross-platform string that I know of... or I just don't know what it is.)
              The 21124 is what happens when you click the "Fix Problems" button on the "Statistics" panel of the "Model Info" dialog.

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • A Offline
                Aerilius
                last edited by

                ❓ ❗
                252.png

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

                  @aerilius said:

                  :?: ❗
                  [attachment=0:1x1tajul]<!-- ia0 -->252.png<!-- ia0 -->[/attachment:1x1tajul]

                  ??

                  Where did you find that?

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

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Aerilius
                    last edited by

                    It's defined in the exe (contains interesting old lumber). I didn't find a send_action code yet.

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

                      I thought...
                      20008 Macro
                      or
                      21082 Test Macros
                      but neither do anything except return true ?

                      TIG

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

                        It could be just something that the MSVC++ application wizard adds to a new project, or it's in the default project template, etc.

                        Ask the SketchUppers ??

                        I'm not here much anymore.

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

                          @aerilius said:

                          It's defined in the exe (contains interesting old lumber). I didn't find a send_action code yet.

                          You extracted it from the EXE?

                          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

                            Yes TT it is a resource in the exe file. I myself have also seen it. They are ALOT of dialog designs in there, and some have likely been orphaned, forgotten about etc.

                            You dont need to actually extract them, you can view any of them with the resource viewer/editor in MSVS.

                            I'm not here much anymore.

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              Aerilius
                              last edited by

                              Another interesting secret menu:
                              Menu213.png
                              Note: the " %(#000000)[BugSplat Test]" shows a submenu which lists action codes 21560–21571. And 21910 screws... up!

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

                                @aerilius said:

                                Another interesting secret menu:
                                Which is no longer secret. 😒

                                @aerilius said:

                                Note: the " %(#000000)[BugSplat Test]" shows a submenu which lists action codes 21560–21571. And 21910 screws... up!
                                Yea.. there is so much stuff in there, many on the SketchUp staff don't know about some of it. I actually had to inform one of the team members of those test "Splat!" send actions... to test a certain bug.

                                I'm not here much anymore.

                                1 Reply Last reply Reply Quote 0
                                • Chris FullmerC Offline
                                  Chris Fullmer
                                  last edited by

                                  The Macro box that someone posted - SketchUp used to have a macro recorder in it. I think that was the interface for that tool.

                                  Lately you've been tan, suspicious for the winter.
                                  All my Plugins I've written

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

                                    @chris fullmer said:

                                    .... SketchUp used to have a macro recorder in it.
                                    That must have been back in the days before they integrated Ruby as a scripting engine ?

                                    I'm not here much anymore.

                                    1 Reply Last reply Reply Quote 0
                                    • Chris FullmerC Offline
                                      Chris Fullmer
                                      last edited by

                                      Yeah it was back before version 4 I think. It recorded the mouse position on the screen and mouse clicks. So if you re-positioned your SU window, the whole macro broke!

                                      Lately you've been tan, suspicious for the winter.
                                      All my Plugins I've written

                                      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