KRBeckman Posted December 24, 2009 Share Posted December 24, 2009 Hey Everybody, This is my first post on this website, so please be gentle. Anyway I'm trying to figure out a way to save my drawings in two separate locations with one command, while one of these locations being dynamic depending on the "Inquiry #" my company uses. The folders should already be created, so I shouldn't run into any problems there. I'm fairly new at AutoLISP, but here's what I've come up with so far: A dialog box comes up and askes for an Inquiry number with line number formatted as 123456-7 and saves this as var1. Then extract the first 3 digits as var2 Then extract the first 6 digits as var3 Then extract the last digit as var4 Now, my company's folder structure goes like this: I:\123\123456\7\ And the file naming system goes like this: SYM-123456-7-A.dwg (A being the Revision) so I need AutoLisp to save the file as I:\123\123456\7\SYM-123456-7-A.dwg, but I'm having the hardest time combining the variables into one variable to be used in the SAVEAS command after FILEDIA is set to 0. Thanks in advance for you help. Kyle Quote Link to comment Share on other sites More sharing options...
KRBeckman Posted December 24, 2009 Author Share Posted December 24, 2009 Nevermind, I was closer that I thought. Just reversed a space and an underscore. Quote Link to comment Share on other sites More sharing options...
David Bethel Posted December 24, 2009 Share Posted December 24, 2009 You might want to look into McNeel's DOSLIB. It is free as does some DOS file workings very easily. http://www.en.na.mcneel.com/doslib.htm -David Quote Link to comment Share on other sites More sharing options...
flowerrobot Posted December 24, 2009 Share Posted December 24, 2009 Nevermind, I was closer that I thought. Just reversed a space and an underscore. So your sorted? 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.