multicaduser
Industrial
- Jan 29, 2013
- 261
I have a visual basic program that takes the file name and assigns it to an existing part attribute. This works well until the name gets long.
The error that pops up is
"System.Exception: Length of String array does not match with length provided."
First the attribute is read then if the option is chosen the file name is used to replace the attribute or something can be entered manually. This is the line of code it fails on.
usrAttr(2,2) = fnameAsDesc
Nothing unusual and it works well with most file names. My programming skills are not great and any hint on what to try would be appreciated.
NX 12.0.1.7 Windows 10
The error that pops up is
"System.Exception: Length of String array does not match with length provided."
First the attribute is read then if the option is chosen the file name is used to replace the attribute or something can be entered manually. This is the line of code it fails on.
usrAttr(2,2) = fnameAsDesc
Nothing unusual and it works well with most file names. My programming skills are not great and any hint on what to try would be appreciated.
NX 12.0.1.7 Windows 10