×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

FILE NAMES
2

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.

RE: FILE NAMES

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?

RE: FILE NAMES

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

RE: FILE NAMES

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

RE: FILE NAMES

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

RE: FILE NAMES

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

RE: FILE NAMES

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

RE: FILE NAMES

(OP)
SIWY,
 If you would do that it would be great.
Thanks

RE: FILE NAMES

2
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

RE: FILE NAMES

(OP)
Thanks,
 That worked.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources