AutoCAD 2013/2014/2015

Reply
Valued Contributor
Joris3P
Posts: 86
Registered: ‎10-26-2009
Message 1 of 5 (336 Views)

arg file variable username

336 Views, 4 Replies
11-21-2012 06:43 AM

Hi,

 

I want to set a custom location in my .arg-file and I'm not sure if Autodesk included that possibility.

 

Z:\%username\autocad\pgp

 

In which Z is a drive on our server.

 

My thought: in this way I can set the correct pgp files for all of the users.

 

 

Sadly this isn't working, any thoughts?

(%UserProfileFolder% isn't working)

*Expert Elite*
pendean
Posts: 23,304
Registered: ‎11-06-2003
Message 2 of 5 (327 Views)

Re: arg file variable username

11-21-2012 09:12 AM in reply to: Joris3P

Why not centrally locate a shared single PGP file on the server instead of a by-user PGP file? Or just leave the individual PGP files on the individual PCs instead of a central location? I'm curious about your approach to centrally locate individual PGP files.

Dean Saadallah Blog | Facebook | Google+ | Twitter | PINS
*Expert Elite*
dgorsman
Posts: 5,596
Registered: ‎10-12-2006
Message 3 of 5 (313 Views)

Re: arg file variable username

11-21-2012 12:32 PM in reply to: pendean

Individual PGP files allows different users to have different aliases, and having it on the network its included in the nightly backups.

 

Not sure if individual user names ala "%USERID% will work in the AutoCAD search path.  What you could do is have your IT set up a Z drive (or other name) to point each user to their individual set of folders under that server (its how we are set up).  Everybody would be pointing to the same path (Z:\My AutoCAD stuff\PGP) but they still get their own folders regardless of user ID.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Valued Contributor
Joris3P
Posts: 86
Registered: ‎10-26-2009
Message 4 of 5 (307 Views)

Re: arg file variable username

11-21-2012 11:23 PM in reply to: Joris3P

Hello Pendean, Dgorsman,

 

@Pendean: as Dgorsman mentioned.

 

@Dgorsman: not quite following you.

I believe our setup is quite similar --- I think.

we have this structure: Z:\username\own_space

 

In order to have things nicely backedup I would like to use that network drive.

%userid% doesn't work, neither does %username%.

 

I just don't want to add/change that filelocation on every machine.

 

Any thoughts?

 

3Pinter

*Expert Elite*
dgorsman
Posts: 5,596
Registered: ‎10-12-2006
Message 5 of 5 (296 Views)

Re: arg file variable username

11-22-2012 07:53 AM in reply to: Joris3P

I do know you can put some variable paths in the search path, and they will resolve based on the current user.  I just can't remember them off the top of my head.  Thats one of the reasons why I avoid such user-specific pathing in our set-ups - its one more thing to maintain and trip over.  Also means you don't have to go around the office and change things :smileyhappy:

 

IT provides all of our users with a "personal network drive" which resolves to the same path for everybody, although it maps to a different sub-folder for everybody.  For example one user could be someserver\BillyBob\, another could be someserver\JimBob, but from the users point of view they are both mapped as G:\.  This way I can specify G:\AutoCAD Support\AutoCAD\PGP in the search paths and they each see their own PGP.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!