It difficult Rename the part name in Assembly file of Siemens NX directly without disturbing the Assembly references.
I developed a code to Rename part name in assembly.
This code mainly used “ug_edit_part_names.exe” application. I added GUI to this application.
We can use this “ug_edit_part_names.exe” application in “NX Command prompt” like below image. The location of this file is “C:\Program Files\Siemens\NX 12.0\NXBIN\ ug_edit_part_names.exe”.
![1](https://private-user-images.githubusercontent.com/111222356/294697617-a9985a4f-234f-4f25-ac1c-04fde9e3d236.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTU1NDMsIm5iZiI6MTcyNDExNTI0MywicGF0aCI6Ii8xMTEyMjIzNTYvMjk0Njk3NjE3LWE5OTg1YTRmLTIzNGYtNGYyNS1hYzFjLTA0ZmRlOWUzZDIzNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMFQwMDU0MDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NDNkODhkYTcwYzcxOWMwMjQ0YzUzZjkzM2ZmNzU5NmRkY2E5YmRiZTkyOWY4ZWM4ZGRjMGI1MGY4NTA0ZjUxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.qwF39hEkTXbRJCRCpMsRpfeqP1uD_1g6vf31qpn4gBU)
with the help of example command (like below image) in we understand how to pass the arrgument to this application
With help of I developed tool can change the part file name without disturbing the Assembly references.
![image](https://private-user-images.githubusercontent.com/111222356/294697765-57725817-4af6-4123-888b-d517953d56e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTU1NDMsIm5iZiI6MTcyNDExNTI0MywicGF0aCI6Ii8xMTEyMjIzNTYvMjk0Njk3NzY1LTU3NzI1ODE3LTRhZjYtNDEyMy04ODhiLWQ1MTc5NTNkNTZlNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMFQwMDU0MDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNjYxYTAyOWE0NTA2NTgzNTFkYTJhNTEwODIwZWE4ZjM3ZDQxZWE5ZGViZTA1OGU1ZTQyNzg1ODEzYzljOTEwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-u3udP2pjQPmuqEJIq-CWSf9w7_u89vvFU9ZUSyPtTo)