rcb007 Posted March 30, 2021 Share Posted March 30, 2021 I am getting stuck on trying to figure out why this piece of the code errors out on the rest of the routine. I have routine with a bunch of (command)s then, towards the end of the routine is this command. (setq prename (getfiled "Save as" "Concept" "dwg" 1))(command "_.saveas" "2018" prename) If the files does not existing, it works as it should. However, if the file does exist, it will save over the file and then stop the routine from continuing onward. Any ideas? Quote Link to comment Share on other sites More sharing options...
rlx Posted March 30, 2021 Share Posted March 30, 2021 use the 'expert' variable 1 Quote Link to comment Share on other sites More sharing options...
rcb007 Posted March 30, 2021 Author Share Posted March 30, 2021 Thanks for the pointer lol. It does make sense now. (setvar 'expert 5) (setq prename (getfiled "Save as" "Concept" "dwg" 1))(command "_.saveas" "2018" prename) (setvar 'expert 0) and it works! Thank you. Quote Link to comment Share on other sites More sharing options...
Steven P Posted March 30, 2021 Share Posted March 30, 2021 Might change it to: (setq expertvar (getvar 'expert)) (setvar 'expert 5) (setq prename (getfiled "Save as" "Concept" "dwg" 1))(command "_.saveas" "2018" prename) (setvar 'expert expertvar) just in case expert is set to something else initially? Quote Link to comment Share on other sites More sharing options...
rcb007 Posted March 30, 2021 Author Share Posted March 30, 2021 Thank you sharing that! 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.