Message 1 of 11
Selecting previous after text edition & reactor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
After use the ATTIPEDIT or the TEXTEDIT commands in a block with attributes, the selected block will not “be” on the previous AutoCAD selection set. I mean, after use one of these commands, if I try to MOVE, PREVIOUS, AutoCAD will say: “No previous selection set”
So I tried:
(setq nsel (nentsel)) (command ".attipedit" nsel) (while (/= 0 (getvar 'cmdactive)) (command pause))
But the problem is, I am using this in a reactor and the “command” can’t be called.
So I tried:
(setq doc (vla-get-activedocument (vlax-get-acad-object))) (setq nsel (nentsel)) (vla-SendCommand doc (strcat ".attipedit nsel")) (vla-SendCommand doc (strcat "(while (/= 0 (getvar 'cmdactive)) (command pause))"))
But also without success…
My questions are:
1. Is there a way to put the selected block by the ATTIPEDIT or the TEXTEDIT in a selection set?
2. Can the reactor be paused without “command” to wait for the user interaction?
Thanks
Marcelo