Hi guys,
Is there any way to set the MS_PLTFILES configuration variable to point to the active Windows user Documents folder?
For example in my case it is as follows:
C:\Users\benzi\Documents
Regards,
Benzi Papo
maybe something like...
MS_PLTFILES = C:\users\$(username)\Documents\
??
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
Answer Verified By: Benzi Papo
As Mary stated, setting it to C:\users\$(username)\Documents\ works like a charm. It does so like 99% of the time. Unless your profile is not stored on C:.If you assign it like this: MS_PLTFILES = $(homeshare)/My Documents/your plot output will go to the My Documents folder, regardless of its location, wether it is on C: or D: or X:. So if the IT guys move the Homeshare directory (which contains Desktop, Downloads, Appdata, My Documents, My Pictures, and so on) to a network location, homeshare will follow thus.
When working in a virtual environment, this may prove more helpfull then hardcoding to C:\ or D: or...
Ivo Blaauw= = = = = = = = = = = = =Look what the CAD dragged in...
Hi Ivo,
Ivo Blaauw said:MS_PLTFILES = $(homeshare)/My Documents/
I think this is not quite correct, because %HOMESHARE% variable is not always defined in Windows and also %My Documents% I guess depends on Windows version and used language.
In my opinion it's better to defined the variable in this way:
MS_PLTFILES = $(HOMEDRIVE)$(HOMEPATH)/Documents/
I am quite sure this is more reobust definition of "My Documents" folder and should be recognized correctly by all Windows applications (as long as the definition is not corrupted by incorrect user profile).
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Works like a charm.
MS_PLTFILES = $(HOMEDRIVE)$(HOMEPATH)/Desktop/
Regards