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

Is this why my part number is not being written?  The code gets the correct part number, but it does not write it into the "part number" field in iProperties.

 

---

'Get the iProperty "part number" from the current document.
Dim partNumber As Inventor.Property = openedDoc.FilePropertySets.Item("Design Tracking Properties").Item("Part Number")
'Set the partnumber field
partNumber.Value = renamePartNumber(dwgDoc)

 

---

 

 

 

Working with part 54321-101.ipt and renaming it to 99999-101.ipt

The "renamePartNumber" routine just strips out the "-101" which seems to be working fine.

 

During debug, if I hover on "partNumber.Value", I get the correct value which in this case is "-101", but it does not get written to the iProperties, it is left blank.

 

chrisw01a_0-1635424769107.png