CAD Posted July 29, 2017 Posted July 29, 2017 (edited) Is there a lisp, changing solid hatch, to outline(pline global width 2mm) ,in the whole drawing also when it is in a block. Edited July 30, 2017 by CAD Quote
CAD Posted July 30, 2017 Author Posted July 30, 2017 Hello Bigal u good:P!!, is a nice lisp, but need some modified, i have say solid hatch, but i think, i need it for all the hatches, sorry for that:geek:. -The lisp ask select object, can u make it, that do instant for all the hatches in and outside the blocks, without asking. -When it make outline the layer is 0, can u make a layer called outline Quote
BIGAL Posted July 31, 2017 Posted July 31, 2017 (edited) Looking somewhere else came across this little gem done by the Master Lee-mac in 2011. Change the 0.0 to what you want. ; original code by lee-mac 2011 zero pline in blocks ; just need this bit (setq doc (vla-get-activedocument (vlax-get-acad-object))) (setq obj (vlax-ename->vla-object (entlast))) (if (eq "AcDbPolyline" (vla-get-objectname obj)) (vl-catch-all-apply 'vla-put-constantwidth (list obj 0.0)) ) (vla-regen doc acallviewports) (princ) (vl-load-com) (princ) Edited August 1, 2017 by BIGAL Quote
CAD Posted July 31, 2017 Author Posted July 31, 2017 Hello Bigal, lisp get some Error: bad argument type: VLA-OBJECT nil Cannot invoke (command) from *error* without prior call to (*push-error-using-command*). ; original code by lee-mac 2011 zero pline in blocks ; just need this bit (setq obj (vlax-ename->vla-object (entlast))) (if (eq "AcDbPolyline" (vla-get-objectname obj)) (vl-catch-all-apply 'vla-put-constantwidth (list obj 0.0)) ) (vla-regen doc acallviewports) (princ) (vl-load-com) (princ) Quote
CAD Posted August 1, 2017 Author Posted August 1, 2017 (edited) hello B, lisp loaded but nothing happen no error more but the things don't -instant all hatch with outline (pline global width 2mm) without ask select objects. -create outline layer name outlines Do i miss something? ; original code by lee-mac 2011 zero pline in blocks ; just need this bit (setq doc (vla-get-activedocument (vlax-get-acad-object))) (setq obj (vlax-ename->vla-object (entlast))) (if (eq "AcDbPolyline" (vla-get-objectname obj)) (vl-catch-all-apply 'vla-put-constantwidth (list obj 0.0)) ) (vla-regen doc acallviewports) (princ) (vl-load-com) (princ) Edited August 1, 2017 by CAD 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.