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

    Is there a way to access the 'Volume" of the 'Element Info'?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    6 Posts 5 Posters 494 Views 5 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.
    • B Offline
      beschleunigt
      last edited by

      Hello,

      I am trying to do some calculations with component attributes.
      Unfortunately I can not find da way to retrieve the Volume of a component, that is shown in the Element Info palette.
      I'd like to access the volume to make further calculations within the component attributes.

      I know there are some plugins to calculate the volume of an object but why isn't it possible to access the volume of the info palette?

      Thank you for help
      kind regards
      beschleunigt

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

        If it is a group or component and a solid the info pallet will return volume.

        1 Reply Last reply Reply Quote 0
        • Dave RD Offline
          Dave R
          last edited by

          You could get the volume from the Report Generator. That would be the same volume as reported in Entity Info. The Report Generator can create a CSV file which you could then open in a spreadsheet program for calculations.

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

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

            In code component_instance.volume returns the volume in cubic inches - use a conversion factor for say m3...
            So if you have a component definition you have to get the volume of an instance NOT the definition.
            Remembering that it might also be scaled ?

            TIG

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

              @TECHDAVE02
              Yes, I'd like to have access to the value of the info palette from within the Component Attribute palette.
              As some kind of function for example.

              @Dave R
              Thank you. I will try that.

              @TIG
              Thank you.
              Is "component_instance.volume" ruby code?
              How can I use it? Is it possible to use it within a function in the component attribute palette?

              Cheers,
              beschleunigt

              1 Reply Last reply Reply Quote 0
              • C Offline
                Cheem
                last edited by

                I've been looking for an answer to this issue, and this post is as close as I could get.

                How can I show the volume of a component in the Component Attributes window? It seems to be available in Attribute Reporting and in the Entity Info window, but I haven't been able to figure out how to get it to the CA window.

                Once I have the volume, I hope to calculate a cost for that volume. I have the cost per a determined UOM and can figure out how to convert it.

                Thanks

                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