FILE NAMES
FILE NAMES
(OP)
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.
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.





RE: FILE NAMES
Regards,
SS
CAD should pay for itself, shouldn't it?
RE: FILE NAMES
That is the only thing I am missing.
Thank you again.
RE: FILE NAMES
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
RE: FILE NAMES
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.
RE: FILE NAMES
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
RE: FILE NAMES
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
RE: FILE NAMES
If you would do that it would be great.
Thanks
RE: FILE NAMES
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
RE: FILE NAMES
That worked.