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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Custom the setting for the config.pro

lworm
2-Explorer

Custom the setting for the config.pro

无标题.png

how to define my vars similar to the PRO_DIRECTORY,like MY_DEMO?


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.
ACCEPTED SOLUTION

Accepted Solutions
MartinHanak
24-Ruby III
(To:lworm)

Hi,

to define requested variable, add following line at the end of psf file.

ENV=CONFIG_PATH=D:\DEMO

Then your config.pro can contain following lines

template_solidpart %CONFIG_PATH%\startup\iso_solidpart_default.prt

-OR-

template_solidpart $CONFIG_PATH\startup\iso_solidpart_default.prt

MH


Martin Hanák

View solution in original post

15 REPLIES 15
MartinHanak
24-Ruby III
(To:lworm)

Hi,

please describe what do you want to achieve. I do not understand why you are pointing into psf file.

MH


Martin Hanák
lworm
2-Explorer
(To:MartinHanak)

i want to define some enviroment vars to define the path for the config.pro,so that i can put the config.pro everywhere,

for example,i define the system enviroment vars CONFIG_PATH D:\DEMO

and i modify the config.pro like this:

template_solidpart %CONFIG_PATH%\startup\iso_solidpart_default.prt

MartinHanak
24-Ruby III
(To:lworm)

Hi,

to define requested variable, add following line at the end of psf file.

ENV=CONFIG_PATH=D:\DEMO

Then your config.pro can contain following lines

template_solidpart %CONFIG_PATH%\startup\iso_solidpart_default.prt

-OR-

template_solidpart $CONFIG_PATH\startup\iso_solidpart_default.prt

MH


Martin Hanák
lworm
2-Explorer
(To:MartinHanak)

无标题.png

i had tried,but it didn't work

dschenken
21-Topaz I
(To:lworm)

Why does the template name start with "g_"

That is not the name you used earlier.

lworm
2-Explorer
(To:dschenken)

i used the file as a test

MartinHanak
24-Ruby III
(To:lworm)

Hi,

did you modify psf file ?

MH


Martin Hanák
lworm
2-Explorer
(To:MartinHanak)

yeah,i had  modified the psf files

MartinHanak
24-Ruby III
(To:lworm)

Hi,

please show me the contents of psf file. I will check it.

What Creo do you use ? Is it CR3 M060 ?

MH


Martin Hanák
lworm
2-Explorer
(To:MartinHanak)

Sorry,i copied the template i want to used ,but i forgot to add a flag,

ENV=$CONFIG_PATH

Right!

TK,MH

lworm
2-Explorer
(To:MartinHanak)

My Creo is Creo3.0 M060

BenLoosli
23-Emerald II
(To:lworm)

You can define your own environment settings in the proe.bat file or call your own file from a modified proe.bat file.

The PSF file should not be changed.

lworm
2-Explorer
(To:BenLoosli)

can you give me a demo for how to modify the bat files?i used the creo3,i can't find the proe.bat files

MartinHanak
24-Ruby III
(To:lworm)

Hi,

look for parametric.bat file.

MH


Martin Hanák
bbrejcha
14-Alexandrite
(To:lworm)

I travel the world teaching Creo classes and I've noticed one thing that 99 percent of companies do incorrectly and that is to push inapropriagte config.pro settings upon their entire staff.  I can tell exactly how old a Sysop is by looking at their config.com LOL  No offense.    30 percent of the time I see old fail mode set w/ Creo 3.0 workgroups.   I could make a list I suppose. 

Bart Brejcha

Design-engine.com

Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags