Lignon19 Posted August 7, 2010 Posted August 7, 2010 Hello, I'm not used with forums, please forgive if I forget some respectfull form,... english is not my mothertongue. Well, the problem is with redefining command. After months or years of trials it seems to me to be the best way for what I want to do is to redefine command, allow the "innocents" to be processed and prohibe the "specifics" to be so, a further code will apply to them. Seems easy, but one BIG problem: in the define routine, the ssget command does not give the expected result. It does select objects but just remove every first entity of a serie of blocks. Please look at the code, in lst1 are the names of blocks "prohibited" to be processed. I think names of blocks are not important. It's the first time the ssget give me this result. Is it known problem ? Here the code for mirror but the problem is the same with move, copy, erase. Thanks for helping. redef.lsp Quote
Tharwat Posted August 8, 2010 Posted August 8, 2010 (edited) The main problem is that you are using a name of Autocad commands as the name of your routine, so Autocad would consider its command first, and of course would ignore yours in this case. Change the name of your routine and go ahead with your Lisp. Rename your routine as unknown command name for Autocad. By the way, why you are using Lisp that is already supported in Autocad, MIRROR. Welcome to CADTutor. Regards, Tharwat Edited August 8, 2010 by Tharwat 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.