1. ## Using Formulas in ACADM 2008

Registered forum members do not see this ad.

I am trying to stream line a modeling process in Mechanical 2008. I am creating fireplaces (to be made into Cast Stone), and I was instructed to give the weights of individual pieces. My process currently is to construct the 3D solid, then a MASSPROP to get the cubic inch measurement. After that, using a construction calculator, convert to cubic feet, and then multiply the cu.ft. by the density value (140) to get the final weight.

i.e.-------------->
Step 1: 4752 cu. in. (MASSPROP value) / 1728 (convert to cu. ft.) = 2.75 cu. ft.

Step 2: 2.75 cu.ft. x 140 (cast stone density) = 385 LBS.

Its not a huge deal, but a headache that I would like to remedy.

Any thoughts?

2. Little lost on your question, but I think your asking for a simple command to get the weight of the piece from a single command versus doing the calculation yourself?

I don't know of a command to do that for you, I suspect there's a thousand and one lisps for it though. I'm also not at all familiar with the vertical desktop applications beyond the ACAD base, so there may be something in there to do it for you too.

3. Originally Posted by Hoozin
I don't know of a command to do that for you, I suspect there's a thousand and one lisps for it though.
No, Hoozin! There are one-thausand-and-TWO. Look here:
Code:
```(defun SumVolume ( / getvolume volume ss i )
(defun getvolume ( object / area )
(vl-catch-all-apply
'(lambda ()
(setq volume
(vla-get-volume
object
)
)
)
)
(if volume volume 0.0)
)
(if (setq volume 0.0 ss (ssget))
(repeat (setq i (sslength ss))
(setq volume
(+ volume
(getvolume
(vlax-ename->vla-object
(ssname ss
(setq i (1- i))
)
)
)
)
)
)
)

(if volume volume 0.0)
(princ
(strcat "\nMAT.  DENS.    Kg \n--------------------"
"\n" "OL   (7.85): " (rtos (* volume 785e-8))
"\n" "Cu   (8.96): " (rtos (* volume 896e-8))
"\n" "Al   (2.70): " (rtos (* volume 270e-8))
"\n" "CuSn (8.15): " (rtos (* volume 815e-8))
"\n" "CuZn (8.35): " (rtos (* volume 835e-8))
"\n--------------------\n"
)
)
(textscr)
(princ)
)```
Eric_monceaux
This uses mm³ and I hard coded the densities for some metals. Just give it a quick try. If you like it, edit the list at the end.

4. ## hmmmm

Thanks for the quick response fuccaro. I am a little rusty as far as lisps are concerned, so I need just a little more info.

I created the lisp with your coding, but I am trying to figure out how to type it at the CMD prompt.

Also, you said that it is in MM3. Is there a way to convert that to CuFt?

5. -Copy-paste the code in Notepad and save the file as Sumvolume.LSP
-Open a drawing, create some solids, drag the lisp file in the drawing area
-Select one or more solids
-Enter (sumvolume) in the command line

If it works, modify the lisp to suit your needs and make a button to start it -I could write you how to change the density to work with other units

6. good morning sir
i am from india iam student of the mechanical engg. iwant to learn about the layers into the autocad 2oo8.kindly send me some easy steps in detail.

7. Registered forum members do not see this ad.

Anjney- your question is rather too general to be answered in a forum. You should research a little more into Layers and then come back with some more specific answers. Also you will get a better response if you start a new thread.

Also, welcome to the forum!

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts