- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need help describing this problem: I am trying to input a reference number consisting of several digits into Inventor's parameter from an Excel table. The issue arises when the number starts with a 0, e.g., 0125455645. Inventor only reads the digits after the 0, which in this case is 125455645. If the starting digit is changed to any number between 1-9, this problem doesn't occur.
What I've done as a workaround is to replace the 0 with a 9 and later used the following function to convert it back:
Dim A As String = CStr(Zg_Nr_HrHT)
If A.StartsWith("9")
Then A = "0" & A.Substring(1)
End If
I am aware that this issue has been fixed in Inventor 2024. However, I have not upgraded to that version yet and am looking for a better solution than the substitution with 9. Perhaps using VBA in Excel, I can send the number from Excel to Inventor's parameter and use it later.
PS:
- The numbers are constantly changed, so I cannot use a static text list.
- The Excel table is often copied; therefore, I don't want to use the Excel path method.
I would be grateful if someone could assist me.
Solved! Go to Solution.