Jump to content

Recommended Posts

Posted

(defun C:hatchAREA (/ a ss n du)
 (setq a 0
       du (getvar "dimunit")
       ss (ssget '((0 . "*HATCH"))))
 (if ss
   (progn
     (setq n (1- (sslength ss)))
     (while (>= n 0)
       (command "_.area" "_o" (ssname ss n))
       (setq a (+ a (getvar "area"))
             n (1- n)))
     (alert
       (strcat "The total area of the selected\nobject(s) is "
               (if (or (= du 3)(= du 4)(= du 6))
;
;The following 2 lines translate the area to square inches and feet
;for users using US engineering or architectural units:
;
                 (strcat (rtos a 2 2) " square inches,\nor "
                         (rtos (/ a 144.0) 2 3) " square feet.")
;
;In the following line, change the word "units" to whatever units
;you are using - meters, millimeters, feet, etc.
;
                 (strcat (rtos a 2 3) " square units.")))))
   (alert "\nNo Polylines selected!"))
 (princ)
)
(alert
 (strcat "POLYAREA.LSP  (c) 1997-2001 Tee Square Graphics"
         "\n\n                Type POLYAREA to start"))
(princ)

 

 

Hi is there any one that might be able to help me change the code from a lisp from TEE Sqaure Graphics.

 

this code puts an AutoCAD alert on the screen, Is there any way the alert can be changed to a multileader

 

A thanks in advance if anyone can help

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...