@Anonymous wrote:
I have at least 40 blocks with unique block name. These blocks contain a rectangular polyline of which we like to apply fillet of 2.5 radius to distinguish these blocks from other entity. Could you please help me create a lisp to automatically fillet these blocks when CAD file opens up.
Block Name: AP_NOTE, AP_NOTE_1, AP_NOTE_2, AP_NOTE_3, AP_NOTE_4, and so forth
Fillet Radius: 2.5
Let me know if you need more information. Thanks in advance.
Try this ........ in a single drawing......(I do not have any of your sample drawings)
(defun C:FRB (/);put temp variables here.....
(setq CMD (getvar "CMDECHO"))
(setvar "CMDECHO" 0)
(command "_.fillet" "_radius" 2.5)
(if (setq Fss (ssget "_A" '((0 . "INSERT")(2 . "AP_NOTE*"))))
(repeat (setq n (sslength Fss))
(command "_.-BEDIT" (cdr (assoc 2 (entget (ssname Fss (setq n (- n 1)))))))
(setq ss (ssget "_A" '((0 . "LWPOLYLINE")(90 . 4)(-4 . "&=")(70 . 1))))
(repeat (setq n1 (sslength ss))
(command "_.fillet" "_polyline" (ssname ss (setq n1 (1- n1))))
)
(command "_.BCLOSE")
(while (> (getvar 'CMDACTIVE) 0)
(command "_save")
)
)
)
(setvar "CMDECHO" CMD)
(princ)
)
And for ..............
@Anonymous wrote:
I have at least 40 blocks with unique block name. These blocks contain a rectangular polyline of which we like to apply fillet of 2.5 radius to distinguish these blocks from other entity. Could you please help me create a lisp to automatically fillet these blocks when CAD file opens up.
Block Name: AP_NOTE, AP_NOTE_1, AP_NOTE_2, AP_NOTE_3, AP_NOTE_4, and so forth
Fillet Radius: 2.5
Let me know if you need more information. Thanks in advance.
You have to work with "acaddoc.lsp" or "acad.lsp" file......
Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....