Looking for lisp to add accumulated areas of multiply selected polygons. Please advise, Thanks
|
Looking for lisp to add accumulated areas of multiply selected polygons. Please advise, Thanks
There are many out there, can you be more specific on what types of Objects you're wanting to be able to select, and what industry you're in?
For example, here's one I use in Civil:
Code:(vl-load-com) (defun c:AddArea (/ area) (if (ssget "_:L" '((0 . "CIRCLE,HATCH,*POLYLINE"))) (progn (vlax-for x (vla-get-activeselectionset acDoc) (setq area (cons (vla-get-area x) area)) ) (prompt (strcat "\nTotal area: " (rtos (setq area (apply '+ area)) 2 2) " SF | " (rtos (/ area 9.0) 2 2) " SY | " (rtos (/ area 43560.0) 2 2) " AC " ) ) ) ) (princ) )
Cheers
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Thank you BlackBox, I am also and new to civil using Civil 3D 13. I am doing the cross cut calculations for drain ditch clean out. "Bpoly" is creating the polygons but I am currently selecting each one and adding on calculator and then placing in spreadsheet. Time consuming. Wish to speed up process. Any advise? Thanks
EDIT POST: This is all great, Thanks for your help but I have stumbled upon the ACAD command "AA" which when following prompts allows for the adding or subtracting of selected object areas. DAH!!!
Last edited by Darren Allen; 2014-09-24 at 04:03 PM.
This is just a test............
[Edit] - I've been trying for the past few days to post a reply, and keep getting an error. Hope to have this resolved soon.
Last edited by BlackBox; 2014-09-26 at 07:10 PM.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000