• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Dynamic Area Calculations

Scheduled Pinned Locked Moved Plugins
11 Posts 6 Posters 1.8k 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.
  • D Offline
    Dennis_n
    last edited by 10 Jan 2010, 05:50

    Hi,
    I was looking for ways to dynamically reflect face area. I know if you point the leader tool to a face, the text in the box is going to show the area of the face. However, that number does not update if the area changes.
    I was wandering if anyone came across a plug-in that allows to see a live value for face area?

    Dennis

    1 Reply Last reply Reply Quote 0
    • C Offline
      chrisjk
      last edited by 10 Jan 2010, 08:36

      Doesn't the entity info window do what you need?

      Chris

      Chris

      1 Reply Last reply Reply Quote 0
      • D Offline
        Dennis_n
        last edited by 10 Jan 2010, 10:38

        it does, but only one at a time.
        If there was a possibility to have a life reading in multiple locations, that would make a big difference.

        on top of that, if it was possible to collect them all into a table and make calculations - it would be a rudimentary BIM.

        Anyway, maybe someone already made a ruby like that.

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 10 Jan 2010, 12:50

          I have a proto-script

          #-----------------------------------------------------------------------
          Copyright 2010 TIG
          Permission to use, copy, modify, and distribute this software for
          any purpose and without fee is hereby granted, provided something the
          above copyright notice appear in all copies.
          THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
          IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
          WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
          #-----------------------------------------------------------------------
          Name:
          AreaText.rb

          Description:
          Adds a submenu to the Plugins menu containing:

          'Add Area Text'
          This lets you add a piece of Text to a Face by Picking it, the text
          has a short leader and is placed at the picked point.
          The Text is associated with the Face and moves with it, relative to
          the Face's bounding-box minimum.
          If the Area Text is relocated manually it will 'remember' its new
          location relative to its Face's bounding-box minimum.
          The area in the Text is formatted in 'sqm' for metric Models and in
          'sqft' otherwise. The 'sqm' value is to rounded to 2 dp [1.23], and
          the 'sqft' value is rounded to 1 dp [13.2].
          By default the Area is named "Area 1:" - with the numerical part
          incrementing, so for example it might be "Area 5: 12.34 sqm"
          The tool lets you place pieces of Area Text until you press <Esc> or
          choose another Tool.
          If a Face already has a piece of Area Text associated with it you are
          warned and nothing is done.
          Later on, if desired you can edit a piece of Area Text as if it were
          plain-text - e.g. to give it an associated room name, but if the
          associated Face tis changed then the Area Text will automatically
          change its text to suit its new area: if you edit the area be sure to
          leave a semi-colon [:] in the text as this separates the numerical
          area from the Face's 'tag'; do not change the numerical part or its
          units suffix: so the correctly formatted 'Office: 12.34 sqm' updates
          to 'Office: 12.98 sqm', and even the 'Office 12.34 sqm' will update to
          'Office: 12.98 sqm' [because in the absence of a ':' the last space
          between the numerical part and the 'tag' will be used as an
          alternative delimiter], BUT 'Office-12.34 sqm' will update to
          ': 12.98 sqm' with NO tag name. You can use ':' inside the face tag
          because only the last one is used for the delimiter, BUT this is best
          avoided.
          The displayed numerical area is always up to date - changing if the
          associated Face [or it's parent] is altered in any way.
          Chaging the Models units from Metric will update all areas in 'sqft'.
          If a Face is erased and it had a piece if Area Text associated with
          it then that Area Text is also erased.
          Area Text referring to a Face within a Group etc that has been Scaled
          will report the area as displayed - i.e. not the original unscaled
          face's area.

          'Add Area Text to Selected'
          This is similar to 'Add Area Text' but you first Select some Faces
          [other types of Entities in the Selection are ignored], then run this
          Tool and pieces if Area Text will be added to any eligible Faces
          [i.e. those that do not already have Area Text associated with them].
          The Area Text is added to the center of each Face's bounding-box and
          moves with the Face.
          The Area Text is otherwise exactly as that made with 'Add Area Text'

          'Area Text to CSV'
          All Area Texts in the Model are audited to ensure they
          are currently up to date.
          It then makes a report of them in CSV format, listing them as:
          Layer,AreaTag,Area,Perimeter.
          Reporting the 'Layer' helps divide the text up so putting your
          Area Text onto Layers named 'Level 0', 'Level 1', Roof etc helps you
          use the report more easily.
          The reported units are sqm/m for metric Models or
          sqft/ft otherwise.
          Commas [,] in reported Area Text 'tags' are changed into
          colons [;] to avoid formatting errors.
          If the Model name is XXXX the report is written into
          XXXX-AreaTextReport.csv.
          The CSV report is made in the Model's folder.
          If that report is already open [=error] you are told.
          A CSV file is readable by Excel and similar programs.
          It can be linked into a XLS file that has 'formatting'
          so then if the CSV updates the pre-formatted XLS file
          will change to suit.

          Version:
          1.0 201001xx First Issue.
          #-----------------------------------------------------------------------

          it is still under development but should be available shortly - look out for its first release... 🤓

          TIG

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dennis_n
            last edited by 10 Jan 2010, 13:33

            MAN!!! so much goes into such a simple function. I have never considered that so many different things have to be taken care of. WOW. It all makes sense, but it is like an iceberg - so big under water.

            Dennis

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 10 Jan 2010, 13:35

              @dennis_n said:

              MAN!!! so much goes into such a simple function. I have never considered that so many different things have to be taken care of. WOW. It all makes sense, but it is like an iceberg - so big under water.
              Dennis

              I write a set of instructions BEFORE I make much of the script - that way I know where I'm going and can structure it to suit - I sometimes rewrite the instructions to cover what I find I can't do or even some extras I find I can do BUT at least I have a route-map...

              TIG

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by 11 Jan 2010, 10:29

                Could Modelur be a solution for you? http://forums.sketchucation.com/viewtopic.php?f=80&t=20700

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

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Dennis_n
                  last edited by 14 Jan 2010, 01:26

                  seems like Modular is a big chunk to chew on. Have you tried it?

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by 14 Jan 2010, 08:13

                    Yea - I've been beta testing it earlier.

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

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      garyvn55
                      last edited by 4 Jul 2010, 06:38

                      Hi All,

                      Well its taken me about 8 hours to track down this post with a tool that the amazing Mr TIG is working on.

                      I'm doing urban design, land use areas, colour coded my material and all I want to do is give each face a unique ID and export its area, id and material to a CSV file.for additional processing.. TIG's prototype to be right on track to what I want t achieve also and can't wait to see the results.. Thanks Again TIG for your exceptional work.

                      PS, I used to do this very simply in Archicad, in fact we coud next the areas so we were able to create sub-sets of area's also.

                      Regards

                      Gary

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bacabcn
                        last edited by 20 Sept 2010, 11:02

                        Did you find a solution to this? I am also looking for a way of getting dynamic areas.

                        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