Skip to main content
14-Alexandrite
April 18, 2025
Solved

Syntax for CREO *.PSF and *.PRO file

  • April 18, 2025
  • 1 reply
  • 847 views

As per the original post.. 

 

Martin,

 

Do you know if it possible to include conditional statements in a psf file?
I'd like to be able to do something like the following, but it doesn't seem to to work:
IF !DEFINE(CREOCACHEDRIVE)
     ENV=CREOCACHEDRIVE=C:
ENDIF

Best answer by jeffreyrwalker

Thanks Ben.
I was trying to avoid using a batch file but that may be my only solution.

Thanks for the quick response.

-Jeff

1 reply

23-Emerald III
April 18, 2025

The way I handle setting environment settings for Creo is to have the parameteric.bat file call a company setup batch file before the default line in the installed batch file. This file handles things like creoagent location and .wf folder location. The batch file I create can use IF statements to control variables and settings.

jeffreyrwalker14-AlexandriteAuthorAnswer
14-Alexandrite
April 18, 2025

Thanks Ben.
I was trying to avoid using a batch file but that may be my only solution.

Thanks for the quick response.

-Jeff