Mar 8, 2006 #1 LHA Civil/Environmental Joined May 28, 2003 Messages 846 Location US How do I list multiple pline areas w/out picking each one, just the areas, not the coordinates. Remember, amateurs built the ark...professionals built the Titanic. -Steve
How do I list multiple pline areas w/out picking each one, just the areas, not the coordinates. Remember, amateurs built the ark...professionals built the Titanic. -Steve
Mar 10, 2006 #2 TCARPENTER1 Computer Joined Sep 22, 2005 Messages 234 Hi lha, I'm afraid the area command only accepts one closed polyline per "object" option - how about a quick and dirty lisp or VB macro? HTH Todd Upvote 0 Downvote
Hi lha, I'm afraid the area command only accepts one closed polyline per "object" option - how about a quick and dirty lisp or VB macro? HTH Todd
Mar 10, 2006 #3 IFRs Petroleum Joined Nov 22, 2002 Messages 4,680 Location US You can type "Area" then "Add" then "Object" and pick them. Not sure if it has to be one at a time. If so, a simple LISP will do it. Upvote 0 Downvote
You can type "Area" then "Add" then "Object" and pick them. Not sure if it has to be one at a time. If so, a simple LISP will do it.
Mar 10, 2006 #4 CarlB Civil/Environmental Joined Jul 11, 2001 Messages 1,194 Location US One place to get a lisp routine for this is http://www.turvill.com/t2/free_stuff/index.htm"polyarea.lsp" Upvote 0 Downvote
One place to get a lisp routine for this is http://www.turvill.com/t2/free_stuff/index.htm"polyarea.lsp"
Mar 12, 2006 #5 IFRs Petroleum Joined Nov 22, 2002 Messages 4,680 Location US Here is a quickie: (DEFUN C:TA (/ AreaSum) (setq AreaSum 0) (prompt "\nSelect all objects to count: ") (setq ss (ssget)) (while (> (sslength ss) 0) (setq en (ssname ss 0)) (setq ed (entget en)) (command "area" "e" en) (setq AreaSum (+ AreaSum (getvar "area"))) (ssdel en ss) ) (prompt (strcat "\nTotal area is: " (rtos AreaSum 2 3))) (princ) ) Upvote 0 Downvote
Here is a quickie: (DEFUN C:TA (/ AreaSum) (setq AreaSum 0) (prompt "\nSelect all objects to count: ") (setq ss (ssget)) (while (> (sslength ss) 0) (setq en (ssname ss 0)) (setq ed (entget en)) (command "area" "e" en) (setq AreaSum (+ AreaSum (getvar "area"))) (ssdel en ss) ) (prompt (strcat "\nTotal area is: " (rtos AreaSum 2 3))) (princ) )