Skip to main content
1-Visitor
June 24, 2021
Solved

Is there a way to use "%userprofile%" in ENV=PTC_WF_ROOT

  • June 24, 2021
  • 1 reply
  • 1823 views
I am using Creo Parametric 7.0 7.0.3.0

Is it possible to have the environmental variables for the Windchill cache to be written to set to the users documents using %userprofile%?
For example:
ENV=PTC_WF_ROOT="%userprofile%"\creo7\cache
ENV=PTC_WLD_ROOT="%userprofile%"\creo7\cache_wld
ENV=CREO_AGENT_HOME="%userprofile%"\creo7\agent

Would like it to be based on the user without having to explicitly enter the user name in the psf file. It would be setup in an install package that would be made available to our user community.
    Best answer by TomU

    Seems like it should work.  I do something similar from a startup script with the cache location, but it should work the same way in the PSF file.

     

    set PTC_WF_ROOT=C:\ptc\%USERNAME%\WC12_CP4_WGM

    1 reply

    TomU23-Emerald IVAnswer
    23-Emerald IV
    June 24, 2021

    Seems like it should work.  I do something similar from a startup script with the cache location, but it should work the same way in the PSF file.

     

    set PTC_WF_ROOT=C:\ptc\%USERNAME%\WC12_CP4_WGM

    KrisFloy1-VisitorAuthor
    1-Visitor
    June 24, 2021

    Excellent!  Thanks for the help.  It works perfectly.