Message 1 of 10

Not applicable
01-11-2016
07:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i need a way to convert volume(cube in) in liter and gallons
i got this to fing the volume,
(defun c:3DVOL (/ eName 3dObj)
(vl-load-com)
(if (and (setq eName (car (entsel "\n >> Select 3D Object for Current Volume: ")))
(= "3DSOLID" (cdr (assoc 0 (entget eName))))
(vlax-property-available-p
(setq 3dObj (vlax-ename->vla-object eName))
'volume))
(princ
(strcat
"\n <!> 3D Volume = "
(rtos (vla-get-volume 3dObj) 2 2)
" <!> ")))
(princ))
( it's a copy past from another topic i dont have any credit on it lol )
for gallons is x / 231
for liter is x / 61.02374
thank you
Solved! Go to Solution.