Changing name of parts in assembly using i-logic

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a query regarding renaming of components in assembly.
Consider, I have assembly say XYZ.iam which consists of 3 parts say A-01.ipt, A-02.ipt, A-03.ipt
I want to write a ilogic code to change prefix from A to B, so that part names will get changed to B-01.ipt, B-02.ipt, B-03.ipt
But, while renaming iLogic rules reference the browser name, NOT the name of the actual part or assembly document underneath it.
So, when you generate BOM in ".idw", after part names will get changed to
B-01.ipt, B-02.ipt, B-03.ipt, you will still see BOM with a list showing A-01.ipt, A-02.ipt, A-03.ipt
So, I would like to write a ilogic code to change prefix from A to B, so that part names will get changed to B-01.ipt, B-02.ipt, B-03.ipt and I want to see BOM with a changed names.
I had found one code which will rename all solid bodies in part, similarly I would like to rename the ".ipt's " in ".iam"
Please click on link http://inventortrenches.blogspot.in/2012/02/ilogic-to-rename-all-solid-bodies.html to get more information on this code.
Please do needful.