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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNTA0OTEsIm5iZiI6MTcyNDE1MDE5MSwicGF0aCI6Ii8xMTEyMjIzNTYvMjk0Njk3NjE3LWE5OTg1YTRmLTIzNGYtNGYyNS1hYzFjLTA0ZmRlOWUzZDIzNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMFQxMDM2MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03YzBjMGM3YjVmNThiNGIyZTgxYWYwMWYxMjcwMWExNDIwZWM1NzUzNmQ4NjM1MjFkY2Y0ODQ4Y2MzZjdlOWRkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._kjpl8d1qkaMIpYQfTupkpB0j9xfWJ9fznAX2ptyHbA)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNTA0OTEsIm5iZiI6MTcyNDE1MDE5MSwicGF0aCI6Ii8xMTEyMjIzNTYvMjk0Njk3NzY1LTU3NzI1ODE3LTRhZjYtNDEyMy04ODhiLWQ1MTc5NTNkNTZlNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMFQxMDM2MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZjAwM2U2NWRjYjQ2ZGVhMjJiOTU3ZmQ3NTA3OWI0MzNhZTQxNmMyYzc3YTg0MDM1ZjMyNWVkNGMxMjdiNDk3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.bJeB0rTWJGgvrswNGhOBdp7NkoyiK9tFl6O1XQ--iYE)