hey group
is it possible to simply rename a part?
I quite often make up quick parts to try stuff out and call them random things but if I want to change the name it is not just a simple case of renaming the part as a few things need updating.
is there a simple quick way to rename a part in one hit without going through other stuff?
regards Adrian
I understand your concern but at the same time file management can easily become a nightmare. I guess the author can either:
1) add in a popup dialog asking the end user if they wish to keep the original file or to delete it
or
2) add in code that will delete the original and comment these line(s) out. This can toggle the behaviour this way.
or
3) after successful rename, relocate original into archive folder so we separate dormats from the active files.
Ok here is an update that will ask if you want to delete the original part. There are also instructions to remove that function or make it autodelete without asking.
Works awesome. Thanks! 🙂
I have been using the macro quite a bit this morning and discovered another issue.
Since I'm working on a fairly large project, having all files inside one folder can get confusing. Hence I group all related part files within their own subfolder and create an assembly file within. The next higher will call the sub assembly from within the subfolder.
The macro will cause the newly renamed file to sit at root rather than place it inside the same subfolder where the original sits.
For example, we have the following files:
main.iam <-- in root folder
subassy1.iam <-- in sub folder "subassy1"
part1.ipt <-- in sub folder "subassy1"
part2.ipt <-- in sub folder "subassy1"
Renaming subassy1.iam to subassy2.iam will cause the following to happen:
main.iam <-- in root folder
subassy2.iam <-- in root folder
part1.ipt <-- inside sub folder "subassy1"
part2.ipt <-- inside sub folder "subassy1"
Likewise renaming sub assembly part that's sitting inside the sub folder will show up at root.
Thanks,
Devin
Hi I have seen this topic pop up again but not had a chance to read through all the latest entries, if it helps what i ended up doing is:
if i created a part that i wanted to rename and use differently, i would open the part - click save as - save as a new inventor part with the new file name.
i would then open up the new part and modify, change etc..
and then in assemblies you can right click on a part and go - component - replace
and this up dates the new part and keeps al the constraints etc..
it works for me and is really simple.
regards Adrian
Hi! Or, you can use Design Assistant to open the assembly and rename the parts there. There is room for improvement in this workflow. It seems like renaming a component in Inventor could be confusing and cumbersome. To allow flexible naming, the browser name can be different than the file name. Also, each component occurrence can have a different browser name, although they all point to the same file. This is a behavior requested by customers particularly reusing components in multiple assemblies.
Another workflow to help rename the component it simply save the component as a different name. Then use Replace Component command (right-click on the occurrence in the assembly -> Component -> Replace -> select the newly saved component document.
Thanks!
Yes but the point is that the macro was developed to automate the steps involved when all we want is to simply rename a part or assembly.
OK I'll try out Design Assistant to see if it helps.
Yes I saw that the browser name and file name can be different. I feel that the "disconnection" is a bad idea and will not help make file management any easier.
I mean the Windows folder. I've tried what you suggest and at first it seems to work but then when I tried to rename the same part, Inventor crashed. Same story on my second attempt. So ended up fixing the problem the manual ways.
Well ok but I'd say that the macro already did the job superbly. It just needs a few more additional tweaks to make it practical for real use. (e.g. renamed copy saved inside the same folder as original). Thanks for your help anyway regardless of whatever decision you decide to take.
Have to say for Pball this thread has turned into a "no good deed goes unpunished!!!" deal.
Offered up a macro that does what he wanted it to do, was kind enough to modify it per someone's wishes and then got to defend its "supposed" bad points for a couple of days.
I can only laugh!!!!
I added the macro, it does as intended and works for me
Hi,
Please try.
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
@sbixler wrote:I'm curious how you would expect this to work? Right click on a component in an assembly and pick "Rename"? Then what? It offers you a Rename Part dialog box? You type the name you want, hit OK, then what happens? The part/assembly file is renamed, and the current assembly's reference to that part/assembly file is updated. Now what? What about other files that reference that component? Drawings, other assemblies, derived parts? How does Inventor know what to do without reading your mind?
No, I don't work for Autodesk. But I have a certain amount of sympathy for programmers who get told by users that the new functionality they want is simple.
Well I'm a programmer and I'll tell you how you do it. You save the name of the part in a variable in the file instead of using the bloody file name as the part name.
Wow.... I didn't take the time to read this whole thread, but I use Design Assistant to work with renaming files. The program can be very slow if your dataset is large, but it works. It has the capability to search your Project for linked files and update links accordingly.
Oh, and another way is to create a drawing with one view of all of the assemblies that contain whatever part you want to rename. Save the drawing and close it, along with all your other open Inventor documents. Then rename your part in Explorer. Then open the drawing and tell it where to find the file you renamed. It will update all of the referencing assemblies in one shot. Save the drawing and close it.
Of course, if you want to rename several files, this can get messy. That's when I use Design Assistant.