10-28-2021
05:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-28-2021
05:40 AM
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.