0 Members and 1 Guest are viewing this topic.
(defun ARCH:FILLET (RAD / ent ent1 ent2) ;;(ARCH:F_S-VAR) (setq ent1 (entget (car (entsel "\n* Match Layer of Select Entities to Fillet w/ Radius *")))) (setq ent2 (entget (car (entsel "\n* Pick second line *")))) (setvar "clayer" (cdr (assoc '8 ent1))) (setvar "Filletrad" RAD) (command "fillet" (cdar ent1)(cdar ent2)) ;;(while (> (getvar "CMDACTIVE") 0) (command pause)) (princ "\n* Resetting Fillet Radius to \"Zero\" *") (setq ent (entlast)) (setq lst (entget ent) cen (cdr (assoc 10 lst)) ; center point rad (cdr (assoc 40 lst)) ; radius ang1 (cdr (assoc 50 lst)) ; start angle ang2 (cdr (assoc 51 lst)) ; end angle inc (- ang1 ang2) ; included angle inc (if (minusp inc) (- inc) (- (* pi 2.0) inc)) ; included angle correction p1 (polar cen ang1 rad) ; start point p2 (polar cen ang2 rad) ; end point ) (command "rotate" ent "" (polar p1 (angle p1 p2) (/ (distance p1 p2) 2.)) "180") ;;(ARCH:F_R-VAR) (princ))(ARCH:FILLET 24)