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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Suffix all parts?

David_M
12-Amethyst

Suffix all parts?

Does anyone know a way to add a suffix to all parts and sub-assemblies within a top level assembly, without breaking anything?

Thanks

ACCEPTED SOLUTION

Accepted Solutions

Hi David...

First let me apologize for contuining to refer to the "Save As" command. This has been renamed "Save a Copy". I didn't intend to confuse things more. Sometimes the command names change but my head doesn't get the memo.

There are several options for working with the template during a rename...

  • The config.pro option model_rename_template allows you to set a mapping template for performing a "Save a Copy" operation. This is done in advance of actually issuing the "Save a Copy" command
  • You can also specify a mapping template DURING the "Save a Copy" command through the tool that pops up. This is the best way to go. The WF5 version of this tool also features a "Suffix" command to automatically append characters at the end of files during the copy operation. The Save a Copy screen is shown below. You'll need to enter a name for your top level assembly first... but then this window will appear...

save_a_copy.png

  • Finally, through Windchill or Pro/INTRALINK you can rename multiple objects at the same time using the "Set Name" function. A small tool will open that allows you to specify a "From" and "To" mapping template. The Rename tool and the icon to access the Set New Name function appear in the image below...

save_a_copy2.png

In all cases, you specify a template mapping by setting a From and To value. The From value is typically something like "*.*" The asterisk wildcard matches everything so "*.*" essentially matches everything. The To value would incorporate your suffix. A typical To value might be "*_new.*" This would append "_new" to every file matched by the template.

This gives you enough of the basics. If you're still having trouble, let me know and I'll try to explain in more depth.

Thanks!

-Brian

View solution in original post

6 REPLIES 6

Hi David...

Sure... you can just do a Save As using the template command to rename everything with a suffix added. The template could be from "*.*" to "*-suffix.*" That would save a copy renaming everything to the old name with a dash and the suffix you specified.

If you don't want to save a copy, you can always perform a rename through Pro/INTRALINK or Windchill using the "Set Name" feature which also has a template style rename ability.

If you're not using Pro/INTRALINK... I'd suggest the "Save As" technique. Otherwise, the Intralink/Windchill method is easiest and safest.

If neither of these work for you, explain your situation a bit more. There are a few more ways I can think to accomplish this task but they get progressively more complex and will take longer to explain. The ones above are the easiest.

Thanks!

-Brian

Hi Brian

What is the template command? Where would I find that?

Thanks

Hi David...

First let me apologize for contuining to refer to the "Save As" command. This has been renamed "Save a Copy". I didn't intend to confuse things more. Sometimes the command names change but my head doesn't get the memo.

There are several options for working with the template during a rename...

  • The config.pro option model_rename_template allows you to set a mapping template for performing a "Save a Copy" operation. This is done in advance of actually issuing the "Save a Copy" command
  • You can also specify a mapping template DURING the "Save a Copy" command through the tool that pops up. This is the best way to go. The WF5 version of this tool also features a "Suffix" command to automatically append characters at the end of files during the copy operation. The Save a Copy screen is shown below. You'll need to enter a name for your top level assembly first... but then this window will appear...

save_a_copy.png

  • Finally, through Windchill or Pro/INTRALINK you can rename multiple objects at the same time using the "Set Name" function. A small tool will open that allows you to specify a "From" and "To" mapping template. The Rename tool and the icon to access the Set New Name function appear in the image below...

save_a_copy2.png

In all cases, you specify a template mapping by setting a From and To value. The From value is typically something like "*.*" The asterisk wildcard matches everything so "*.*" essentially matches everything. The To value would incorporate your suffix. A typical To value might be "*_new.*" This would append "_new" to every file matched by the template.

This gives you enough of the basics. If you're still having trouble, let me know and I'll try to explain in more depth.

Thanks!

-Brian

Hi Brian,

Thanks, I was able to append and add suffix in windchill using *.* process, I was wondering if you know how i could remove the suffix now, in other words remove common suffix to keep the base on multiple files. 

 

Thanks

BenLoosli
23-Emerald II
(To:manny1)

Windchill will only allow a single file with a filename. Removing the suffix may cause issues with multiple files having the same name.

 

Please show an example of what files you need to rename and why. Also the version of Windchill and Creo will help in properly answering any questions.

 

manny1
3-Newcomer
(To:BenLoosli)

Using the method that Brian posted I was able to add suffix to multiple file names at once in windchill, now I'm trying to remove the suffix that I added. Just so I know how to go back and forth.

 

example: 124356_suff  >>> 124356

                253255_suff >>> 253255

 

creo version 4

Windchill 11.1

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags