×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Listing multiple pline area w/out picking each one, just the areas

Listing multiple pline area w/out picking each one, just the areas

Listing multiple pline area w/out picking each one, just the areas

(OP)
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

RE: Listing multiple pline area w/out picking each one, just the areas

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

RE: Listing multiple pline area w/out picking each one, just the areas

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.

RE: Listing multiple pline area w/out picking each one, just the areas

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)
)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources