CadFrank Posted August 28, 2014 Posted August 28, 2014 Hi, I'm trying to make sure a routine saves a drawing if it's not saved. So I use : (if (= (getvar 'dwgtitled) 0) (command "_saveas") ) But it does not prompt the dialog box. Is there a way to do so. Quote
Lee Mac Posted August 28, 2014 Posted August 28, 2014 Try calling the initdia function before issuing the command, e.g.: (if (zerop (getvar 'dwgtitled)) (progn (initdia) (command "_.saveas") ) ) (untested) Quote
CadFrank Posted August 28, 2014 Author Posted August 28, 2014 Well it works. Thx for the quick response. Cheers ! 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.