| (defun c:ktim ( / a l i s e ) (if (setq s       (ssget        '( (0 . "CIRCLE,ELLIPSE,*POLYLINE,SPLINE")           (-4 . "")         )       )     )     (progn       (setq a 0.0)       (repeat (setq i (sslength s))         (setq a (+ a (vlax-curve-getarea (ssname s (setq i (1- i))))))       )       (setq l 0.0)       (repeat (setq i (sslength s))         (setq e (ssname s (setq i (1- i)))               l (+ l (vlax-curve-getdistatparam e (vlax-curve-getendparam e)))         )       )     ) )  (princ "\nTotal Length: ") (princ (rtos l 2 2)) (princ "\nTotal Area: ") (princ (rtos a 2 2)) (princ "\nTolerance: ") (princ (rtos (/ (* (- (* (+ (sqrt a) 1) (+ (sqrt a) 1) ) a) l) (* (sqrt a) 4)[highlight])[/highlight] 2 2)) (princ "\n10 % Area : ") (princ (rtos (* a 0.1) 2 2)) (princ))(vl-load-com) (princ)
 You missed ) - see highlighted... And also you had extra ) after (princ...) 
You also had invalid DXF 70 for 3dpolyline - it should be (70 . |