eldon Posted May 19, 2011 Share Posted May 19, 2011 At least you can break 3d polylines with Pedit Quote Link to comment Share on other sites More sharing options...
iuliandonici Posted May 19, 2011 Author Share Posted May 19, 2011 @ReMark: I didn't think of doing that. But, I tried it now and it doesn't work even if I freeze the other layers. It's not exactly what I need. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted May 19, 2011 Share Posted May 19, 2011 Did you even bother to try the lisp in the thread I linked? Quote Link to comment Share on other sites More sharing options...
fuccaro Posted May 19, 2011 Share Posted May 19, 2011 I got some time and access to an AutoCAD seat. Here is a better code: it will preserve the layering and it doesn't care about the Osnap. Is it what you need, Iulian? (defun c:ltp() (setq ss (ssget "X" '((0 . "LINE"))) i (sslength ss)) (repeat i (setq e (ssname ss (setq i (1- i))) el (entget e)) (entmake (list '(0 . "POLYLINE") (assoc 8 el) '(10 0.0 0.0 0.0) '(70 . )) (entmake (list '(0 . "VERTEX") '(67 . 0) (assoc 8 el) (assoc 10 el) '(70 . 32)'(50 . 0.0))) (entmake (list '(0 . "VERTEX") '(67 . 0) (assoc 8 el) (cons 10 (cdr (assoc 11 el))) '(70 . 32)'(50 . 0.0))) (entmake '((0 . "SEQEND"))) (entdel e) ) (princ) ) Again: operate on a copy of the drawing, for just in case. The program starts by typing LTP (lower or upper case), it stands for "Line To Polyline" Quote Link to comment Share on other sites More sharing options...
fuccaro Posted May 22, 2011 Share Posted May 22, 2011 Does it work, Iulian? Quote Link to comment Share on other sites More sharing options...
iuliandonici Posted May 23, 2011 Author Share Posted May 23, 2011 @fucarro: It does work. Listen, Fuccaro, I truely hope one day I would master this VBA scripting. Thank you. Thank you very much. Quote Link to comment Share on other sites More sharing options...
iuliandonici Posted May 23, 2011 Author Share Posted May 23, 2011 Actually, Fucarro, you might have just saved my job! People like you on Cadtutor tend to... save jobs, really. I'm very new to Autocad (2008 Mechanical) but the effort and support you give to people, truely makes Cadtutor a valuable Autocad resource! Thank you, once again! Quote Link to comment Share on other sites More sharing options...
fuccaro Posted May 23, 2011 Share Posted May 23, 2011 I am really glad to be helped, Iulian! And thanks for the feed-back. If you like this forum, hang around, get as much help as you need and also you may try to contribute. Quote Link to comment Share on other sites More sharing options...
iuliandonici Posted May 23, 2011 Author Share Posted May 23, 2011 Oh, Fucarro, I would love to contribute when I'll have some more consistent Autocad knowledge (which, now, is not the case) and, by the way... MULTUMESC, DIN NOU . Quote Link to comment Share on other sites More sharing options...
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.