Showing results for 
Search instead for 
Did you mean: 
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Creo: How to setup Multiple Windchill Users on a Single Computer


Creo: How to setup Multiple Windchill Users on a Single Computer


This document describes how to setup Creo Parametric and Windchill for use by more than one Windchill user on the same computer with the same Windows User Account. This configuration is not required to use Windchill in a browser. It is only required when connecting Creo Parametric to Windchill for CAD Data Management.

NOTE: If you are the only one using Creo Parametric and Windchill on your own computer with a single Windows account, you do not need to perform any of these actions.


Lots of teams have that unique situation where multiple people use the same computer with the same Windows User Account to run Creo Parametric. This is fine on its own, but when connecting Windchill, Windchill expects each user to authenticate from their own Windows User Account for security purposes. If you are using one computer and one Windows User Account for multiple people, you've probably run into issues where different people lose their CAD data or run into problems connecting to Windchill. This is typically caused by multiple people authenticating into Windchill from Creo Parametric from a single Windows User Account and all working in a single local cache (which is not how Windchill was designed to be used; the local cache should only belong to a single Windchill user).

To get around this, you can use the environment variables, PTC_WF_ROOT and PTC_WF_CACHE.

Manual Process

This manual process will help you understand the methodology for using PTC_WF_ROOT and PTC_WF_CACHE. If you would like a more automated method of doing this read this section ot familiarize yourself with the process and then check out the Automated Process.

You cannot set these variables globally because they need to be set for each Windchill user. You can do this manually by defining a unique cache folder for each user; ex. C:\Windchill\Scott. Create a unique folder for each user who will access Windchill from this computer. Do not use spaces in the folder path, it will make things more complex.

Now you can open a Command Prompt and set the environment variables.

  • set PTC_WF_ROOT=C:\Windchill\Scott\.wf
  • set PTC_WF_CACHE=C:\Windchill\Scott\local_cache

To make sure you've entered the right values, you can use the ECHO command to validate.

  • echo %PTC_WF_ROOT%
  • echo %PTC_WF_CACHE%

At this point, the trick is to start Creo from the same Command Prompt since the environment variables are only defined in the Command Prompt, not globally on the computer. If the Creo commands are not in your %PATH%, you'll need to enter the full path to the startup command. If that path contains spaces, you'll need to escape them with "" as shown below.

  • "C:\Program Files\PTC\Creo 3.0\M040\Parametric\bin\parametric.exe"

NOTE: Quotation marks are used above since there is a space character in the path. If there are no spaces in the path to your parametric.exe command, the quotes are not required.

Now that you've launched Creo, define your Windchill Server connection and choose a primary Workspace. To confirm you have set things up correctly, you should see new files added to the .wf and local_cache folders.

NOTE: None of these files should be manipulated manually. Creo and Windchill expect to find specific files in specific locations in these folders with specific content in the files. You should never attempt to manually work with the files in these folders, just let Creo and Windchill do their thing.

Automated Process

Since we are just working with folder locations and environment variables, all this configuration and execution can be automated in a batch file (.bat). You can make a single batch file for each user or create a "smart" batch file that supports all the users. An example batch file is provided below. You can copy/paste the contents into a new batch file or download the attached file. The download will need to be renamed from .TXT to .BAT since most systems will not allow download of .BAT files.

The batch file is fully documented. You'll just need to make two changes in the INPUT Variables section to define the common Windchill folder you'll use for all Windchill users and the full path to you parametric.exe command. To personalize the batch file, change User1-User4 with the names of your Windchill users so they know which option to pick.

As a best practice, put the batch file in a secure location and put a shortcut on the Desktop or in your Start Menu to prevent people from inadvertently changing or removing it.


@echo off

REM ================================================================

REM =  Creo Parametric Startup Script for multiple Windchill users =

REM =                                                              =

REM =  Ver  Date         Init  Description                         =

REM =  ---  -----------  ----  ----------------------------------- =

REM =  1.0  18-OCT-2015   sm   Created new batch file              =

REM ================================================================

REM ===================== INPUT Variables ==========================

Change "C:\Windchill" below to the folder location you want to use for your local cache.

SET WCHOME=C:\Windchill

if NOT EXIST "%WCHOME%"   goto wchome_not_set

Change "C:\Program Files\PTC\Creo 3.0\M040\Parametric\bin\parametric.exe" below to the full path to your Creo Parametric start command.

SET CREO_CMD=C:\Program Files\PTC\Creo 3.0\M040\Parametric\bin\parametric.exe

if NOT EXIST "%CREO_CMD%" goto creo_parametric_error


REM Set WCHOME to the common WC user folder on your computer

REM Set CREO_CMD to the full path to your parametric.exe command


Change "User#" below to the name of the students who will be using Creo and Windchill.

You can have any number of students listed as long as you update the Start User Selection to match.



ECHO Who are you?


ECHO  1. User1

ECHO  2. User2

ECHO  3. User3

ECHO  4. User4





REM Change User1 - User4 to the actual names of your Windchill users

REM Remove entries if you do not need them

REM Add new entries if you need them, but they will need to be added

REM to the User Selection section below to work properly


:: SET /P prompts for input and sets the variable to whatever the user types

SET Choice=

SET /P Choice=Enter choice and press Enter:

:: The syntax in the next line extracts the substring

:: starting at 0 (the beginning) and 1 character long

IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%


REM ==================== End INPUT Variables =======================

REM =================== Start User Selection =======================

:: /I makes the IF comparison case-insensitive

IF /I '%Choice%'=='1' set USER=User1& GOTO LaunchCreo

IF /I '%Choice%'=='2' set USER=User2& GOTO LaunchCreo

IF /I '%Choice%'=='3' set USER=User3& GOTO LaunchCreo

IF /I '%Choice%'=='4' set USER=User4& GOTO LaunchCreo

IF /I '%Choice%'=='Q' GOTO End

ECHO "%Choice%" is not valid. Please try again.




REM ==================== End User Selection ========================

REM ===================== Start Launch Creo ========================


@echo off

REM Set environment variables based on user selection


set PTC_WF_CACHE=%WCHOME%\%USER%\local_cache

if NOT EXIST "%WCHOME%\%USER%"   goto wchome_not_set

REM Start Creo Parametric

ECHO Starting Creo Parametric as %USER% in %WCHOME%\%USER%...


GOTO end_script

REM ====================== End Launch Creo =========================

REM ==================== Start Error Handling ======================


set choice=

GOTO end_script


echo Error: Failed to find Creo Parametric command at: %CREO_CMD%

echo        Verify that CREO_CMD has been set properly.

GOTO end_script


echo Error: Failed to locate %USER% folder at: %WCHOME%

echo        Verify that %WCHOME%\%USER% has been set up properly.


REM ==================== End Error Handling ========================


Thanks Scott, this is great info.

As an alternative, can we avoid these setup mods by setting up the computer with a windows user accounts for each student?

If so, are there advantages/disadvantages to one or the other method?

Also, with separate user accounts, would Creo have to be downloaded and installed separately for each user, or is there a way to install once, then configure for each user?

Thank you



Yes, you could definitely create Windows user accounts for each student. That will cure the problem without the need for custom startup scripts since everyone's Windchill cache will be located in their own %USERPROFILE%. There's no need to update or change Creo. It is installed for All Users by default, so everyone should be able to access the same installation without any additional configuration.

Personally, I would go with the multiple user accounts/machine. Its easier for the kids to know who they are logged in as, they can install their favorite browsers and extensions and reduce the risk of overwriting each others files. One thing you may want to check, make sure Creo is not setup to work out of the Public Documents folder vs. the My Documents folder. That's another opportunity for everyone to start working in the same folder.