Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to set a part number in iProperties based on the cut length of the part. We get this raw part in four different lengths and I need to set the part number according to the 'Track_Length' user parameter in the part. I am getting errors when I hit a line that uses the 'And' operator. I am using this method to define what to do if the value is between two values.
Any help would be greatly appreciated.
'5598 = 11'-0" '1557 = 13'-0" '1558 = 17'-0" '1559 = 21'-0" 'Set track part number in iProperties based on part length. Select Case TRACK_LENGTH Case TRACK_LENGTH <= 132 iProperties.Value("Project", "Part Number") = "5598" Case TRACK_LENGTH > 132 And <= 156 iProperties.Value("Project", "Part Number") = "1557" 'Case TRACK_LENGTH > 156 And <= 204 'iProperties.Value("Project", "Part Number") = "1558" 'Case TRACK_LENGTH > 204 And <= 252 'iProperties.Value("Project", "Part Number") = "1558" End Select
Solved! Go to Solution.