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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Creo Startup Script

davehaigh
12-Amethyst

Creo Startup Script

I finally got around to testing my startup script for Creo Parametric 1.0-m020

Previously it was noted that:

1. When you exit Creo a process is left running which prevents you from deleting the trail file. (will be fixed in m030)

2. When you save a config file from the config editor it saves all the options in session. So it might be nice to ensure that users are not overwriting your master configs, or messing up their personal configs.

3. That the loadpoint configs are now in a path with ship code in it. So you need to know the ship code in order to copy the configs to the correct location.

I finally got around to testing my startup script. The script below assumes the following:

1. The start in directory for Creo is:
%USERPROFILE%\pro\creo_1_home

2. Your loadpoint and user configs are staged here:

%USERPROFILE%\pro\creo_1_home\configs\loadpoint\*

%USERPROFILE%\pro\creo_1_homeconfigs\user\*

3. The cache file for PDMLink is here:

%USERPROFILE%\pro\creo_1_home\PDMLink_Cache\PTC\ProENGINEER
You will obviously want to change the paths if you intend to do this differently. This is set up for my own testing of Creo, hence everything is local. Typically the loadpoint configs would be on a server some place.

The Startup Script with Line numbers:

1. tskill creoagent

2. for /F "tokens=2 usebackq" %%A IN (`findstr "SHIPCODE" "c:\ptc\Creo 1.0\Parametric\uninstall\instlog.txt"`)DO set CREOVERSION=%%A

3. for /F "useback tokens=*" %%a IN ('%CREOVERSION%') DO set CREOVERSION=%%~a

4. xcopy "%USERPROFILE%\pro\creo_1_home\configs\loadpoint\*" "C:\ptc\Creo 1.0\Common Files\%CREOVERSION%\text" /y /r

5. xcopy "%USERPROFILE%\pro\creo_1_home\configs\user\*" "%USERPROFILE%\pro\creo_1_home" /y /r

6. attrib +R "C:\ptc\Creo 1.0\Common Files\%CREOVERSION%\text\config.pro"

7. attrib +R "C:\ptc\Creo 1.0\Common Files\%CREOVERSION%\text\config.sup"

8. set PTC_WF_ROOT=%USERPROFILE%\pro\creo_1_home\PDMLink_Cache\PTC\ProENGINEER

9. del "%USERPROFILE%\pro\creo_1_home\*.log*"

10. del "%USERPROFILE%\pro\creo_1_home\*.xml*"

11. del "%USERPROFILE%\pro\creo_1_home\*.inf*"

12. del "%USERPROFILE%\pro\creo_1_home\*.m_p*"

13. del "%USERPROFILE%\pro\creo_1_home\*.out*"

14. del "%USERPROFILE%\pro\creo_1_home\*.crc*"

15. del "%USERPROFILE%\pro\creo_1_home\*.usr*"

16. del "%USERPROFILE%\pro\creo_1_home\*.bom*"

17. del "%USERPROFILE%\pro\creo_1_home\*.tst*"

18. del "%USERPROFILE%\pro\creo_1_home\*.ger*"

19. del "%USERPROFILE%\pro\creo_1_home\*.err*"

20. del "%USERPROFILE%\pro\creo_1_home\*.lst*"

21. del "%USERPROFILE%\pro\creo_1_home\*.idx*"

22. del "%USERPROFILE%\pro\creo_1_home\*.isl*"

23. del "%USERPROFILE%\pro\creo_1_home\*trail.*"

24. start "LLNL" "C:\ptc\Creo 1.0\Parametric\bin\parametric.exe"

Explanation of each line

1. Kill the process that PTC leaves hanging after an exit. Warning this may cause you grief if you intend on running multiple copies of Creo at the same time.

2. Figure out what the ship code is

3. Strip the double quote from the ship code

4. Copy the loadpoint configs into the loadpoint location

5. Copy the users config.pro into the startup directory

6. Make the loadpoint config.pro read only

7. Make the loadpoint config.sup read only

8. Set the cache location for PDMLink
9-23. Delete temp files

24. Startup Creo Parametric

David Haigh
Phone: 925-424-3931
Fax: 925-423-7496
Lawrence Livermore National Lab
7000 East Ave, L-362
Livermore, CA 94550


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags