Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
A.Acheson
in reply to: OliverXL5YM

The easiest approach here is to stabilize the occurrence name by renaming to a generic name that will become static. If you say your part number doesn't change then you can add a description and the part number. The main thing is that the occurrence name is unique. Now when you the file name changes the occurrence name won't. You have removed the out of the box occurrence renaming tool. Now in your code refer to the static occurrence name and your code will work. 

 

See this article here it has a handy renaming code in case you have a lot to rename.

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan