alanjt Posted April 26, 2011 Share Posted April 26, 2011 We're in agreement for Best Practices... I simply included this functionality in response to the OP's explicit request of how to 'Delete all hatches in a drawing?' I do use routines which *add* entities to a given drawing regardless of locked layers; but I cannot think of a practical, non-one-time-use as I *believe* this thread's purpose to be. That's a completely different situation and unlike vla-add*, entmake doesn't care if the layer you are creating objects on is locked. BTW, bear in mind (I just noticed this), this thread is in the beginner's section. Quote Link to comment Share on other sites More sharing options...
nicolas Posted April 26, 2011 Share Posted April 26, 2011 Hi, I do understand that quick select (qselect or simply qs using a personal alias name) is a top tools to quickly delete all hatches or all hatches using such and such patterns and the combinations are numerous based on object properties. However as a autolisp newbie, I would like to implement something similar to quick select in autolisp and I know that given qselect is a dialog box, I can't use it. I know nothing of visual lisp except the vl-load stuff. Is there a way to implement ssx or filter or any other command to autolisp. Suppose I want to delete or isolate or set to hidden mode all the solid hatches at once. I know I can use qselect but being able to use autolisp is even more powerful for it can be apply to any object, any properties and I do believe that we can used boolean operator as well. Regards, Nicolas. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted April 26, 2011 Share Posted April 26, 2011 BTW, bear in mind (I just noticed this), this thread is in the beginner's section. However as a autolisp newbie, I would like to implement something similar to quick select in autolisp and I know that given qselect is a dialog box, I can't use it. I know nothing of visual lisp except the vl-load stuff. Is there a way to implement ssx or filter or any other command to autolisp. Suppose I want to delete or isolate or set to hidden mode all the solid hatches at once. I know I can use qselect but being able to use autolisp is even more powerful for it can be apply to any object, any properties and I do believe that we can used boolean operator as well. Alan's right - as this is the beginner's area, perhaps your question would be better answered from the AutoLISP, Visual LISP & DCL forum. Quote Link to comment Share on other sites More sharing options...
alanjt Posted April 26, 2011 Share Posted April 26, 2011 Here's a very simple example of selecting all hatch: (ssget "_X" ; select all of something '((0 . "HATCH") ; hatch object (8 . "PIZZA") ; on layer "PIZZA" (2 . "ANSI32") ; pattern name "ANSI32" ) ) Literature on DXF codes: http://docs.autodesk.com/ACD/2011/ENU/filesDXF/WSfacf1429558a55de185c428100849a0ab7-5f35.htm http://images.autodesk.com/adsk/files/acad_dxf2.pdf Quote Link to comment Share on other sites More sharing options...
BlackBox Posted April 26, 2011 Share Posted April 26, 2011 Here's a very simple example of selecting all hatch: (ssget "_X" ; select all of something '((0 . "HATCH") ; hatch object (8 . "PIZZA") ; on layer "[color=red]PIZZA[/color]" (2 . "ANSI32") ; pattern name "ANSI32" ) ) Literature on DXF codes: http://docs.autodesk.com/ACD/2011/ENU/filesDXF/WSfacf1429558a55de185c428100849a0ab7-5f35.htm http://images.autodesk.com/adsk/files/acad_dxf2.pdf Awww, man... now I'm hungry. Quote Link to comment Share on other sites More sharing options...
alanjt Posted April 26, 2011 Share Posted April 26, 2011 Awww, man... now I'm hungry. ..................... 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.