- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm replicating the bedit command to add an attribute check before actually calling the bedit command in autolisp. I've got almost everything working but when running bedit inside a block editor (BLOCKEDITOR=1) it asks for the keywords save or discard changes (to close it and then to open the block editor for the selected nested block. No matter what command keyword I give, it says unknown command or invalid keyword and switches to the default option selection with error. What am I doing wrong here?
I'm talking about these two options
(progn
(command "_.-BEDIT" bname)
(if (/= (getvar "BLOCKEDITOR") 0)
(progn
(initget 1 "Save Discard")
(setq resp (getkword "\nSave or discard changes [Save/Discard]?"))
(cond ((= resp "Save")
(command "S"))
((= resp "Discard")
(command "D"))
)
)
)
Thanks in advance.
Solved! Go to Solution.
Link copied