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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Batch file to start Creo with or without Windchill

GiFra_Label
11-Garnet

Batch file to start Creo with or without Windchill

I am using Creo Parametric - Release 8.0 (connected) Release 8.0 and Datecode8.0.2.0

Hello,
I'm looking for a manner to start Creo with and without windchill.
If I put a copy of my templates and start parts (that normally are on Windchill) also in my PC, I heard that I can start creo with a batch file for a Windchill or a stand alone utilize.

Can I have major informations about this? Have you an already did "general batch file" to share with the client?

Thanks
2 REPLIES 2
BenLoosli
23-Emerald II
(To:GiFra_Label)

Just need to create a couple of scripts/batch files that have the Windchill or Native file locations in them.

The copy of the config.pro files controls weather the user is using Windchill or Native file locations.

Here is my Creo Launch Script file (stripped down for only 2 choices):

 

:start
@echo.
@echo ***********************************************************
@echo * PRESS 1, 2, 3, 4, 5 OR 6 to select your task, or 7 to EXIT *
@echo ***********************************************************
@echo.
@echo 1 - CTS Creo7/Windchill 11.1
@echo 4 - CTS Creo7 Native Filing (No Windchill)
@echo 7 - EXIT
@echo.
@SET /P M=Type 1, 2, 3, 4, 5, 6 or 7 then press ENTER:
@IF %M%==1 goto cts1
@IF %M%==4 goto cts2
@IF %M%==7 goto exit


:cts1
@echo.
@echo CTS/Creo7/Windchill 11.1
@del "%userprofile%\config.pro"
@copy "X:\OR\Engineering\Systems\PTC_Settings\Configs\config-cts.pro" "%userprofile%\config.pro"
@call "X:\OR\Engineering\Systems\PTC\Creo7070\Parametric\bin\parametric.bat"
goto exit

:cts2
@echo.
@echo CTS No Windchill
@del "%userprofile%\config.pro"
@copy "X:\OR\Engineering\Systems\PTC_Settings\Configs\config-cts-nowc.pro" "c:\users\%username%\config.pro"
@call "X:\OR\Engineering\Systems\PTC\Creo7070\Parametric\bin\parametric.bat"
goto exit

 

:exit
exit

Hello @GiFra_Label 

 

I encourage whoever who as shareable scripts to share them here.

 

I can nevertheless try to provide some guidance. Consider first importance of:

  • environment variable PTC_WF_ROOT & CREO_AGENT_HOME (article 62457)
  • Startup directory (where config.pro is read upon startup)
  • config option dm_remember_server documented in article 43901

Therefore, starting point of script can look like what follows:

set PTC_WF_ROOT=<path>
set CREO_AGENT_HOME=<same path>
cd <Same Path>
<Command to Start Creo Parametric => path to parametric.exe>

 

The 2 batch files should be stored in different Working directory where Creo is supposed to start from (different folder for the standalone versus linked sessions).

Finally, each fiolder should contain a config.pro inside , slightly different, because:

  • The startup directory of the standalone sessions should contain dm_remember_server no
  • Whereas the startup directory of the standalone sessions should contain dm_remember_server yes

 

Far from being exhasuitve (batch file can also doing much more things, like clearing cache, perform automatic copy of config.pro or even creo_parametric_customization.ui files BEFORE startup of Creo Parametric application), but hope this gives already a good starting point for the configuration you would like to implement in your Department.

 

Regards,

 

Serge

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags