Saqib_theleo Posted November 21, 2012 Share Posted November 21, 2012 Hello all, I have this Remove Duplicates Lisp, I found this on http://www.freecadapps.com. I wanted to know is this possible to make this lisp so that it always selects selection set without pressing "S" after command "DUPREM".Duprem.lsp Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 21, 2012 Share Posted November 21, 2012 Quick fix: Comment lines 33 & 34, then on a new-line after line 34, add: (setq SLE "S") Quote Link to comment Share on other sites More sharing options...
Saqib_theleo Posted November 21, 2012 Author Share Posted November 21, 2012 Hi Lee Mac, I did So, ; Start [color=red](setq S L E "S")[/color] (initget "S L E") (setq SLE (getkword "\nSelect objects by <S>election set, <L>imits, or <E>ntire database: ")) but not working. Quote Link to comment Share on other sites More sharing options...
MSasu Posted November 21, 2012 Share Posted November 21, 2012 I'm afraid you misunderstood Lee's instruction; until he comes on-line, there is how the code should look: ... ; Start [color=red];[/color] (initget "S L E") [color=red];[/color] (setq SLE (getkword "\nSelect objects by <S>election set, <L>imits, or <E>ntire database: ")) [color=red](setq SLE "S")[/color] (cond ... Quote Link to comment Share on other sites More sharing options...
Saqib_theleo Posted November 21, 2012 Author Share Posted November 21, 2012 Thanks MSasu, Oh yes I misunderstood, sorry for that. I just added new line and forgot about these ";". Now it's working as I need. Thanks MSasu and Lee Mac. 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.