sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    [req] fixed area plugin

    Scheduled Pinned Locked Moved Plugins
    12 Posts 6 Posters 3.9k 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.
    • mitcorbM Offline
      mitcorb
      last edited by

      This would be a great tool for planning and design based on prescribed areas for offices, etc. User could find the appropriate proportions of the space for best fit and usability. A long time ago, I stumbled upon something in a book relating to this which the author called the Doctrine of Fluctions??(not fluctuation) It had to do with analysis of fixed areas with variable proportions. I cannot seem to find anything on Google about it, however.

      I take the slow, deliberate approach in my aimless wandering.

      1 Reply Last reply Reply Quote 0
      • W Offline
        wyatt
        last edited by

        There is similar function in autocad dealing with parametric constraints. Constraints can be applied to edges to keep them, for example, always perpendicular or parallel when an object is stretched, or to keep a one object a set distance from a radius point or edge of a second object when the overall component is scaled. These functions may be more robust than what you're requesting, but they are very useful for mechanical designs and other things where relationship of elements is very important. Maybe something similar could be created in ruby, though I haven't the foggiest idea how. Perhaps someone will find the parallel to these existing CAD tools useful.

        1 Reply Last reply Reply Quote 0
        • mitcorbM Offline
          mitcorb
          last edited by

          Ok, I'm back, but not with the solution. I think Monsieur Bur is eminently more qualified, if he sees fit. I was just going to say that changing the spelling of the word to "fluxion" did I find that Sir Isaac Newton coined this term in his independent and almost simultaneous development of calculus. Liebniz was the other guy and he got the credit. Newton only devised calculus as a tool to develop his Laws of Thermodynamics. Sorry, this is way off topic, rc5.

          I take the slow, deliberate approach in my aimless wandering.

          1 Reply Last reply Reply Quote 0
          • Didier BurD Offline
            Didier Bur
            last edited by

            Hi,
            I haven't got much time to do it but here is what I achieved so far. A tool that let you click on a side of a square, rectangle or parallelogram and that let you click another point to define the scale value (or enter it in the VCB) and preserves the area of the selected face.
            Still some bugs to fix but could be released in a week or so.
            Regards,

            fixedarearect.avi

            DB

            1 Reply Last reply Reply Quote 0
            • sdmitchS Offline
              sdmitch
              last edited by

              Since I have a lot more free time than Didier, here is my solution to the problem. The face must be a four sided figure with opposite sides of equal length. Run plugin, select face, select edge to be moved. Point to new location or keyin dimension desired. Left click to finish.


              Change dimensions while maintaining area

              Nothing is worthless, it can always be used as a bad example.

              http://sdmitch.blogspot.com/

              1 Reply Last reply Reply Quote 0
              • Didier BurD Offline
                Didier Bur
                last edited by

                Hi,
                Good job sdmitch. Since our scripts are almost the same, I'll stop mine.
                Sometimes the bug you can see on the image below appears. It's related to the order of the vertices of the face I suppose, because I was facing it too. Apparently face vertices in SketchUp are not always stored clockwise ?
                fixedareabug.jpg

                DB

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

                  @didier bur said:

                  Apparently face vertices in SketchUp are not always stored clockwise ?

                  Are you using face.outer_loop.vertices? Vertices from Loop objects should always be in order.
                  Also, if you get position from edges, check if the edge is reversed in the face ( edge.reversed_in?( face ) ) to check if the vertices in the edge runs in the direction of the face's loop.

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

                  1 Reply Last reply Reply Quote 0
                  • sdmitchS Offline
                    sdmitch
                    last edited by

                    @unknownuser said:

                    Apparently face vertices in SketchUp are not always stored clockwise ?

                    Didier, No they are not. It seems to depend on how the rectangle is defined. That's why, as thomthom suggests, I used the
                    @unknownuser said:

                    edge.reversed_in?
                    to check for that.

                    Nothing is worthless, it can always be used as a bad example.

                    http://sdmitch.blogspot.com/

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

                      And you still get such bug?

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

                      1 Reply Last reply Reply Quote 0
                      • sdmitchS Offline
                        sdmitch
                        last edited by

                        @thomthom said:

                        And you still get such bug?

                        No not anymore.

                        Nothing is worthless, it can always be used as a bad example.

                        http://sdmitch.blogspot.com/

                        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