Skip to main content
14-Alexandrite
April 20, 2017
Question

how to identify a PTC CREO Educ file VS Pro file

  • April 20, 2017
  • 1 reply
  • 1863 views

hello,

 

I'm running a mapkey on all PRT files of a DATA base.

 

there are several educative files in the folders, and when the mapkey try to open this kind of object, it crashes instead of going to the next.

I would like to exclude by deleting this educ files, but I don't know how to identify a PRT Educ file compared to a PRT Professional file.

 

 

is there a code behind the file?

R.

1 reply

24-Ruby III
April 20, 2017

Hi,

create mapkey that opens all part files and then analyze trail file. Trail file will contain error messages belonging to educ files.

MH

Ronan14-AlexandriteAuthor
14-Alexandrite
April 20, 2017

well, that's an idea, thank you Martin!

I hoped there is a "simplest" way of the kind looking inside the PRT file a code that precise it's an educ file or not.

when you open a PRT file with a text editor, you can find several informations like the CREO version or the common name; I thought it also was the version type.

I forget to precise I'm talking about 20.000 files, so it's faster to find and suppress it in a command dos than a CREO mapkey and then analyse the trail!

R.

24-Ruby III
April 20, 2017

Hi,

so you have 20.000 files. I suggest you to:

  1. create trail file that opens 1 file and exits Creo session
  2. create script which generates 20.000 trail files based on sample trail file mentioned in step 1. Every trail file opens single part.
  3. create script which contains following 20.000 commands ... PATH\parametric.bat  PATH\trail_file_nnnnn.txt  ... where 00001 <= nnnnn <= 20000
  4. run this script and you will get 20.000 trail files
  5. locate trail files containing error message ... they contain names of educ parts

MH