Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

%userprofile% and %username%

2 REPLIES 2
Reply
Message 1 of 3
Stemdriller
1021 Views, 2 Replies

%userprofile% and %username%

Hi,

 

Can someone advise me as to whether we can use the above %userprofile% or %username%  in the Options area for Autocad.

 

I am trying to set a profile thats uses each users indivdual cuix file.

 

So for example U:\Users\%username%\AutoCAD\Local.cuix

But it would appear that Autocad cannot read the %username%.

 

Any hints or ideas most welcome.

 

Thanks

 

Gareth 

2 REPLIES 2
Message 2 of 3
hmsilva
in reply to: Stemdriller

The Support Paths are hard coded, so the path using a ENVIRONMENT_VARIABLE will be evaluated as text..

Perhaps something like this

(strcat "U:\\Users\\" (getvar 'LOGINNAME) "\\AutoCAD\\Local.cuix");; to get the correct path

 and the use "setenv" or "vl-registry-write" to write it to the registry...

 

HTH

Henrique

 

EESignature

Message 3 of 3
dgorsman
in reply to: hmsilva

Or, if you are like most places with each computer having only one user, take them out of the ...\Users\... folder entirely to remove dependancy on a specific user name.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost