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

    [Plugin] Volume Calculator2...

    Scheduled Pinned Locked Moved Plugins
    64 Posts 23 Posters 82.0k Views 23 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.
    • kenK Offline
      ken
      last edited by

      TIG

      Well I haven’t used the plugin “Volume” for sometime and not sure when this problem started to occur. Right now, VolumeCalucator2.1, 2 or 1.7 or 1.8, all the versions I have, the context menu stays grayed out. Not sure what I have added to make this plugin’s context menu not functional.

      Just passing this on to you, don’t expect you to go back and figure out what is wrong. I have added and removed the required “#” symbols to add the “Volume” selection to the plugin menu and removed the grayed out selection from the context menu.

      Most of my work involves working with designs that are located underwater. So if you ever do look at this program again, besides all the choices in volumes, it would be nice to have two more choices, buoyancy in saltwater or fresh water.

      Again thanks so much for the original plugin.

      Ken

      Fight like your the third monkey on Noah's Ark gangway.

      1 Reply Last reply Reply Quote 0
      • kenK Offline
        ken
        last edited by

        TIG

        Thanks for your quick reply.

        Ken

        Fight like your the third monkey on Noah's Ark gangway.

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

          Recent updates of SUp seem to have led to graying-out of context-menu items that only a restart and early try to use them fixes... The context-menu items can usually still be accessed via the end of the main Edit menu...
          Something to do with how many clicks you do before it breaks - hopefully a future SUp update will fix this...

          TIG

          1 Reply Last reply Reply Quote 0
          • P Offline
            pedromarmol
            last edited by

            Hello!
            The first, Thanks!, the plugin is fantastic. I'm translating a lot of plugins for SU to spanish language, i have translated Volumen Caculator 2.1 to Spanish, i want to share with all SU's users.
            Chao!

            Here is the Spanish version:

            EDIT: Script Removed. SketchUcation forum policy does not permit people to post scripts they did not write. Please obtain permission from the author first, thanks!

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

              Pedro

              If you PM me your translated version I'll check it over and publish it here, if it's OK...

              TIG

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

                Thanks to Oxer who has translated my Volume_v2.1 tool into Spanish - so if you would like it to run in Spanish then remove the old version and put this new one*** into the Plugins folder [if you prefer it to be in ENglish then don't do anything !].
                Unfortunately this tool is not [yet] 'debBelizered' so if there are any updates to the EN version then the ES translation might get out of step - however, the next update will probably be to get it 'deBabelizered' anyway, so not to worry... 🤓
                ***VolumeCalculator21-ES.rb

                TIG

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

                  Dear TIG,

                  I am having problems with the attached model. The volume calculator works fine on the blank casting (2 %), but falls over with the casting with the holes. I am using version 1.8 of VolumeCalculator.rb because (in the past), I found it worked best with internal voids.

                  Would it be possible to include a drop-down and editable list of densities, with the option to calculate total mass as well as volume. By editable I mean the possibility to add to the list of materials and densities.

                  Would it be possible to include an escape function (ESC key?) so that the calculation could be terminated if found to be taking too long?

                  Kind regards,
                  Bob


                  Model for TIG.skp

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

                    To do stuff with density/volume/weight use my very recent 'Center of Gravity Tool'...

                    I have got you 'holey form' to make a Volume... BUT I rotated it in 3D so it didn't take forever to work at 0.5%!
                    Having all of those holes in every 'slice' r_e_a_l_l_y slows things...Capture.PNG

                    TIG

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

                      Dear TIG,

                      Many thanks for answering my query. I hadn't thought to change the Z direction before running the script. A very, very useful plugin. Thanks

                      Regards,
                      Bob

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        Pout
                        last edited by

                        Hey TIG,

                        Thx for this script.

                        I have a little question:

                        Let's say a group only contains one or multiple faces not forming a volume (so volume can not be calculated)
                        How do I build in a test that determines if the script should continue with the volume calculation (or just give the combined area of the faces)?
                        Maybe the test is already in the code, but i can't seem to figure it out completely.

                        regards

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

                          There are two versions of Volume - [v1] is slow but 'reliable' and the other [v2] is fast but 'sensitive' !
                          v1 will find the volume of a shape even it it has no 'lid' or holes in it - just as if it were filled up with a fluid till it spilled out - but it takes it's time on very high accuracy settings...
                          v2 needs a 'manifold' shape - make sure that the form is fully faced - there's my recent manifold.rb to check this. Used on a suitable form v2 will quickly return the volume with as much accuracy as it can muster... if it has 'holes' or complex faces [internal etc] it can't return a volume.
                          To find the area of faces there's a new thread started recently that explains how best to do this...
                          🤓

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            SUCCESS01
                            last edited by

                            hello......... it seems to be intressting, please how to get it?

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              SUCCESS01
                              last edited by

                              thanks man... you're so great 👍

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                BillB1
                                last edited by

                                Hi, just wanted to let the community know, I tried running Volume2.1, having had it run successfully in the past, and found that whilst the dialog loaded and the "clone volume" object was created, no volume text label was added to the drawing. Guessing that the problem might be a plug-in conflict, i disabled some of my more recent plugin additions (change filename from .rb to .rbXX) and re-ran Sketchup and Volume. The problem was Sketchy Physics plugin (V3 I think). Disable it and Volume 2.1 works as expected.

                                Don't know if anyone can shed any light on this or can suggest a solution for them both to co-exist?

                                Best wishes to all.

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

                                  Thanks Bill

                                  There is a know issue with some clashes with scripts and SketchyPhysics - see this http://forums.sketchucation.com/viewtopic.php?p=300105#p300105 BUT it's never been reported with Volume before ?
                                  Perhaps it's a clash with the

                                  class Geom;;Point3d
                                     def dot(v)
                                        self.x * v.x + self.y * v.y + self.z * v.z
                                     end
                                  end
                                  

                                  code ?
                                  😕
                                  I'll look into it...........

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    BillB1
                                    last edited by

                                    No idea TIG, I'm not best-placed to comment on coding 😕

                                    It would be interesting to know whether anybody else has the same issue or whether it is a peculiarity of my system...

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Mvmcneil
                                      last edited by

                                      I am cleaning up all my plugins and testing as I install each one to make sure there are no conflicts and I keep getting an error when I do a validity check on simple cubes and spheres. Is this normal?

                                      Using Sketchup 7.1 on OSX 10.6.5.

                                      Thanks.


                                      Validiy_Check_Grab.jpg

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

                                        How do you know this is related to Volume?
                                        Change your active layer to Layer0 beforehand and see what happens ??

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • EarthMoverE Offline
                                          EarthMover
                                          last edited by

                                          Would it be possible to create a Volume by Surface option for this plugin? I often have to figure out volume calculations of things that below grade and hence not shown in the model. Say something like a concrete footer or slab. In the model I only usually show the surface. I thought it would be great if the plugin recognized if the selection was a single plane with no depth and would prompt the user to set a virtual depth before proceeding to the volume dialog. If it's not too much trouble.

                                          3D Artist at Clearstory 3D Imaging
                                          Guide Tool at Winning With Sketchup
                                          Content Creator at Skapeup

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

                                            Adam

                                            Can't you just select all of the faces [using a filter] and then get the total area from Entity Info and then x that depth in " to get the volume in cu" [then x 0.000578703703703704 to make it cu' or x 0.000021433470507545 to make it in cuyds]...

                                            This one-liner will return the volume of 1" depth of the selected flat faces in cuyds [other selected entities or non-flat faces are ignored].
                                            You can change 'd=' to another depth as desired; change 'f=' [and the final 'puts()'] if you want say cu' etc...

                                            d=1;f=0.000021433470507545;v=0;Sketchup.active_model.selection.each{|e|v=v+(d*e.area)*f))if e.class==Sketchup;;Face and e.normal.z.abs>=0.999};puts(v+" cuyds")
                                            

                                            Just copy paste it into the Ruby Console, adjusting d= [and perhaps f= etc] as desired, then <enter>...
                                            🤓

                                            TIG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement