More Free AutoLISP and Visual LISP code snippets for AutoCAD

 Click here to download the code as a file.


;;; By Jimmy Bergmark
;;; Copyright (C) 1997-2006 JTB World, All Rights Reserved
;;; Website:
;;; E-mail:
;;; returns the area of selected object
;;; Made for AutoCAD 2000
(defun c:areaOfObject (/ en curve area)
  (if (setq en (entsel))
      (setq curve (vlax-ename->vla-object (car en)))
            area (vl-catch-all-apply 'vlax-curve-getArea (list curve))