Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
vitor2HXBF
296 Views, 3 Replies

update iPART part number as filename

Hi everyone, I have used this line of code for consistent Part Numbers when saving files:

iProperties.Value("Project", "Part Number")= ThisDoc.FileName

 

as suggest by autodesk itself: https://knowledge.autodesk.com/support/inventor/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-...

 

The problem is when I use this rule in an iPart it breaks the part Number because of Index.

Is there an easy fix to this code?