Jump to content

Recommended Posts

Posted

Does someone know from where is AutoLISP listing the value of TEMPPREFIX system variable? It is supposed that it bear the location of Windows temporarily folder but if change the value of TEMP and TMP user variables (Control Panel --> System Properties --> Environment Variables --> User variables) this remain unaffected.

 

This become a very bad issue when try to use the Temp folder to communicate between applications – the Environ function in Visual Basic for example is listing the right location (the same case in other languages).

 

Is there other solution in AutoLISP to list the folder that is currently listed in Windows as temporarily files location?

 

Thank you!

 

Regards,

Posted

As for your question Msasu,

 

Do these work better for you?

 

(getenv "Temp")

(getenv "TMP")

Posted

Yes, it works like this. Thank you very much!

Will have to make sure from now that avoid usage of TEMPPREFIX system variable due to this issue…

 

Regards,

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