Delete button doesn't work while using lisp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everybody,
I have problems with my delete button;
I've read different posts about changing PICKFIRST to 1 and this works, but;
If I want to delete something and I put the PICKFIRST to 1, which is the normal setting for me, and I delete this object. The delete button respond.
But when I'm using this lisp:
(defun C:FST (/ str ss) ; = Find String(s) by Content
(setq str (getstring "\nVoer een deel van, of de complete mtext/text in: "))
(if (setq ss (ssget "_X" (list (cons 0 "*TEXT") (cons 1 (strcat "*" str "*")) (cons 410 (getvar 'ctab)))))
(sssetfirst nil ss); select/highlight/grip
); if
); defun
(defun C:FT (/ str ss) ; = Find text(s) by Content
(setq str (getstring "\nVoer de complete mtext/text in: "))
(if (setq ss (ssget "_X" (list (cons 0 "*TEXT") (cons 1 str) (cons 410 (getvar 'ctab)))))
(sssetfirst nil ss); select/highlight/grip
); if
); defun
it doesn't....
This lisp is for selecting text or textstrings in the drawing. If I use the command "FT", I need to insert the text/ word I want to select. But if this text is selected, I can't delete it by using the delete button.
Oddly enough, I use this command, all texts, equal to the entered text, are selected. The delete button doesn't work right after in AutoCad. But if these text is selected and I go to another program, I click once with my mousebutton, and go back to AutoCad again, the delete button works again....
Anybody knows how this can be solved?
The PICKFIRST value isn't changed to 0, this is still 1