;; | ---------------------------------------------------------------------------- ;; | PL_Fitted? ;; | ---------------------------------------------------------------------------- ;; | Function : Checks if a polyline is fitted or not ;; | Argument : 'ename' - Polyline entity name ;; | Returns : T if the polyline is Fitted, else nil ;; | Updated : February 9, 1999 ;; | e-mail : rakesh.rao@4d-technologies.com ;; | Web : www.4d-technologies.com ;; | ---------------------------------------------------------------------------- (defun PL_Fitted?( ename / flag en entl Splined Fitted ) (setq entl (entget ename) en (LI_item 0 entl) Fitted nil ) (if (member en (list "POLYLINE" "LWPOLYLINE")) (progn (setq flag (LI_item 70 entl)) (if (zerop (logand flag 2)) (setq Fitted nil) (setq Fitted T) ) ) (progn (alert "Error : Entity passed to PL_Fitted? is not a Polyline.") (exit) )) Fitted )