Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

FILE NAMES 2

Status
Not open for further replies.

metalquest

Mechanical
Oct 4, 2007
8
I am new to NX,
I have NX 5 and I was wondering if there is a way to change the name of all the files in an assembly. The reason for this is I have a customer who wants to change the name of all files to match his file system. He tells me this after we have several designs completed. Can any one help with this.
 
Replies continue below

Recommended for you

Cloning functionality comes to mind. It will let you rename all the component parts on the fly and maintain any links betwix them. I don't have much experience with it, but I think its a good place to start. Read up on the docs (Assembly -> Cloning) while waiting for someone smarter than me to weigh in...

Regards,
SS
CAD should pay for itself, shouldn't it?
 
Thanks for the response, I have read on the cloning but I can't figure out how to get it to reference the callout attribute the bom gives it.
That is the only thing I am missing.
Thank you again.
 
Please let us know what you need to rename the files from and to.

Cloning will create a copy of your assembly structure renamed according to naming rules that you can set up which usually involve adding a prefix or a suffix to each of the files. added string will have to be the same for each file, so you can rename 1234-1.prt to 1234-1_new.prt rather easily.

I suspect that you may need to do something rather more specific. If that is the case make it clear, and perhaps one of the programmers who post here will have some ideas for you.

Also are you using Teamcenter?

Regards

Hudson
 
example "cam_slide" needs to be named "2875_01_215"
the "2875" is the customers die number the "01" is there operation number and the "215" is the detail number(or callout) that the bom gives it.
Thanks for the quick response.
 
I betting that "widget" needs an entirely different number, and "gizmo" wants to be called yet another number. While what you're renumbering to has structure and logic it doesn't bear any relationship to any part of the original generic filename.

If you have a list of the new and old names then you need to create a program to do the renaming. The tough part occurs when it comes to getting any assemblies renamed because you want to get all the newly named components to be associative with the new assembly number.

There may be only one assembly, not too large, that you have to do this way. Then assuming you have a list of the is/was names then using windows I'd create a command line batch job to rename the list of files, including assemblies, (in unix a similar script file would do the job). That would save a lot of typing. The part that will take some time is that you'll have to open the assembly in UG and substitute each component with the newly named version, (or use open component as).

If you have a really large amount of renaming, and/or an ongoing need to do this sort of thing then hopefully somebody will have a program than does what you need.

If such a program exists I hope we can track down a copy because many of us have had these sorts of problems, and I want a copy too.....

Regards

Hudson
 
metalquest

You can use Clone assembly if it actual please let me know I can write you step by step how to do it. Generaly you have to create log from "Dry Run" modify this log (file names etc) and use Clone assy from log

regards
 
SIWY,
If you would do that it would be great.
Thanks
 
Ok I will try to help you.

1.Choose Assemblies => Cloning => Create Clone Assembly and select the Log Files tab.
2. Select Specify Output log File. UG add a ..clone extension to the filename
3. Choose the Main tab and select Add Assembly and choose the assembly to be cloned - Your project (DWG file if you made this in non-master or assy).
4. Choose the Naming tab and select Define Naming Rule, select Add Preffix and add the preffix eg XXXXX. Later you can easy recognize names.
5. Enter the Default Output Directory.
6. Choose the Main tab and push the Set Defaults button, then turn on Dry Run and select Execute.
7. Open saved log file ( location from step 2) in a text editor and change the
Default_Naming_Technique: from NAMING_RULE to USER_NAME.
8. Continue to edit the file and type names as you want
Save the edited file.
9. Choose the .Log Files. tab from the Clone Assemblies dialog and select Load and Apply Existing Log
File. and select the previously edited log file, mark off Dry run.


I hope it can help you

Regards
Pawel Siwak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor