Remove Hatch
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Remove Hatch

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
flex411
Guest





Posted: Wed Apr 06, 2005 10:28 pm    Post subject: Remove Hatch Reply with quote

Hello, with qselect I can change the object type to hatch then for operator “select all” then click ok. After that I just hit delete and all the hatching is gone.
I think ssx may be the best way to do this in a Lisp command? But im not too sure how to go about it, any help would be great.

Back to top
R.K. McSwain
Guest





Posted: Wed Apr 06, 2005 10:33 pm    Post subject: Re: Remove Hatch Reply with quote

flex411 wrote:

Quote:
Hello, with qselect I can change the object type to hatch then for
operator “select all” then click ok. After that I just hit delete and
all the hatching is gone. I think ssx may be the best way to do this
in a Lisp command? But im not too sure how to go about it, any help
would be great.



(ssget "X" '((0 . "HATCH")))
Back to top
flex411
Guest





Posted: Wed Apr 06, 2005 11:16 pm    Post subject: Re: Remove Hatch Reply with quote

Thank you, but im not doing it right. Im trying to test it in a single lsp file so i make a lsp file call it test.lsp load it and type ssget and get unknown command? even without loading the lsp command i type ssget and get unknown command? am i missing something?

Back to top
Jeff Mishler
Guest





Posted: Wed Apr 06, 2005 11:26 pm    Post subject: Re: Remove Hatch Reply with quote

Try loading this:

(defun c:hatchBgone ()
(command "erase" (ssget "x" '((0 . "HATCH"))) "")
(princ)
)
then at the command line type HATCHBGONE

--
Jeff
check out www.cadvault.com
"flex411" <nospam@address.withheld> wrote in message
news:7559060.1112815013757.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
Thank you, but im not doing it right. Im trying to test it in a single lsp
file so i make a lsp file call it test.lsp load it and type ssget and get
unknown command? even without loading the lsp command i type ssget and get
unknown command? am i missing something?
Back to top
flex411
Guest





Posted: Wed Apr 06, 2005 11:35 pm    Post subject: Re: Remove Hatch Reply with quote

works great thanks. Im still very green with lisp. Thanks for the help.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB