Message 1 of 3
Driving parameters from assembly level into parts with changing names

Not applicable
02-16-2016
05:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following piece of code which works great when everything is kept standard.
However when the part is made non-standard, users change the prefix of a file from an 'A' to an 'AN'. Obviously when this happens my rule can no longer find the file.
How can I re-code this to work with both names, or even better to write to the same part everytime, no matter what the name is changed to?
If Hinge_Side = "Left"
hinge = 0
Parameter("A01909:1", "hinge") = 0
Parameter("A01906:1", "hinge") = 0
Parameter("A01903:1", "hinge") = 0
ElseIf Hinge_Side = "Right"
Parameter ("hinge") = 1
Parameter("A01909:1", "hinge") = 1
Parameter("A01906:1", "hinge") = 1
Parameter("A01903:1", "hinge") = 1
End If