CadFrank Posted August 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
Lee Mac Posted August 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
CadFrank Posted August 28, 2014 Author Share Posted August 28, 2014 Well it works. Thx for the quick response. Cheers ! Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted August 28, 2014 Share Posted August 28, 2014 No worries! 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.