Jump to content

AutoLISP to save drawing in 2 locations


KRBeckman

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...