flopo Posted November 25, 2011 Posted November 25, 2011 Hi guys, I need a lisp to l trim lines around texts - at a given value - to work this way: select texts or mtexts, insert value for distance around text, and trim all lines that intersect all texts and mtexts selected . Something like background mask , but with trim. Thanks! Quote
flopo Posted November 25, 2011 Author Posted November 25, 2011 TCIRCLE is ok, but EXTRIM only 1 object at a time... pick 1 by 1... Quote
Lee Mac Posted November 25, 2011 Posted November 25, 2011 TCIRCLE is ok, but EXTRIM only 1 object at a time... pick 1 by 1... beggars can't be choosers Quote
flopo Posted November 25, 2011 Author Posted November 25, 2011 I choose to beg your pardon, Lee . Quote
alanjt Posted November 25, 2011 Posted November 25, 2011 I choose to beg your pardon, Lee . ROFL. Best language barrier mix-up ever. Only because I wrote this a year ago...only designed to work with circles.... (defun c:CIT (/ ss) ;; Trim Inside of selected Circles ;; Required subroutines: etrim (from Express Tool: EXTrim.LSP) ;; Alan J. Thomspon, 12.22.10 (if (or etrim (load "extrim.lsp" nil)) (if (setq ss (ssget '((0 . "CIRCLE")))) ((lambda (i / e) (while (setq e (ssname ss (setq i (1+ i)))) (etrim e (cdr (assoc 10 (entget e)))) ) ) -1 ) ) (alert "Express Tool: EXTrim required!") ) (princ) ) Quote
BlackBox Posted November 26, 2011 Posted November 26, 2011 ROFL. Best language barrier mix-up ever. 1+ ... LoL Quote
iamtristanc Posted April 17, 2018 Posted April 17, 2018 Hey alanjt, how difficult is it to get this working with rectangles/polylines? I tried replacing "CIRCLE" with "POLYLINE" but that didn't work... Seemed too basic haha ROFL. Best language barrier mix-up ever. Only because I wrote this a year ago...only designed to work with circles.... (defun c:CIT (/ ss) ;; Trim Inside of selected Circles ;; Required subroutines: etrim (from Express Tool: EXTrim.LSP) ;; Alan J. Thomspon, 12.22.10 (if (or etrim (load "extrim.lsp" nil)) (if (setq ss (ssget '((0 . "CIRCLE")))) ((lambda (i / e) (while (setq e (ssname ss (setq i (1+ i)))) (etrim e (cdr (assoc 10 (entget e)))) ) ) -1 ) ) (alert "Express Tool: EXTrim required!") ) (princ) ) Quote
BIGAL Posted April 17, 2018 Posted April 17, 2018 Not tested but should work (setq ss (ssget '((0 . "CIRCLE,lwpolyline")))) Quote
iamtristanc Posted April 30, 2018 Posted April 30, 2018 Awesome, thank you! Not tested but should work (setq ss (ssget '((0 . "CIRCLE,lwpolyline")))) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.