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

Use a parameter value in a file name?

mdebower
18-Opal

Use a parameter value in a file name?

Hi there,


Anybody ever insert a Pro/E parameter value into a file name automatically?


What I want to do is export / Copy As to a STEP file, but include a Pro/E parameter in the filename. The revision for example.



-marc


CAD / PLM Systems Manager


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.
2 REPLIES 2

We do so here to append the revision parameter automatically. It's not
a simple process. We use a series of nested mapkeys along with nested
batch files to process the output.



Our method goes something like this:



1. Create a temporary folder on the server
2. Output the file in the desired format to the temporary folder
3. Save the parameter information for the file to the temporary
folder as a text file
4. Use a batch file to parse the text file for the desired
parameter ('revision' on our case) and extract that parameter value to a
variable
5. Use a batch file to find the name of the file that was exported.
6. Use a batch file to create an final output folder named with the
date and the file type (111027_IGES for example)
7. Use a batch file to rename the output file
<filename>_<revision>.<type> and move it into the final output folder
8. Use a batch file to clean up all the temp files and folders



I can give you more detail if you want, but that's the gist of it. Your
process may vary based on your parameter names, server structure, etc.



Doug Schaefer
--
Doug Schaefer | Experienced Mechanical Design Engineer
LinkedIn

Does anyone know the config option to have the inches amd millimeters buttons selectable when creating a new format?

Thanks,
Stefan

[cid:image001.png@01CC94B0.2983A4F0]
Top Tags