Jump to content

Windows variables in AutoCad


ewan_m

Recommended Posts

Hi Everyone,

 

I am using windows XP with Autocad map 2006 and have been trying to get some batching from DOS running scripts and autolisp batches in autocad with certain variables set.

 

I remember in the past seeing variables being set in dos and then having them available in autocad, i have tried "SET XXX= TEST" etc. in dos but autocad doesn't seem to take them up.

 

Does anyone know how to get dos variables into autocad so autolisp can work appropriately?

Link to comment
Share on other sites

Here is another way.

Right Click on your Computer Icon (windows desktop) select Properties and then select the advance tab. Click on Environment Variables and add the variables there.

Link to comment
Share on other sites

After some more fiddling i found the solution (or so it seems for me):

 

You must call autocad from the command prompt where you set the variable. I thought if you called autocad after it was set that would be enough - I was wrong.

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...