Message 1 of 7

Not applicable
09-01-2016
02:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
All,
I'm trying to get a case statment in an external rule to read the multi-value list (text type) in a part to play nice with each other.
The basis for my code is
SyntaxEditor Code Snippet
Dim oDoc as Document = ThisDoc.Document ChannelSize = Parameter("ChannelSize") Select Case ChannelSize Case = "C3 X 3.5" iProperties.Value("Summary", "Keywords") = "C3 X 3.5 MS CHANNEL" G_IR=0.237489154 G_ER=0.08 G_H=3 G_W=1.37 G_T=0.132 G_C=0.616175 G_T1=0.273 G_NG=0.0524 iProperties.Value("Project", "Stock Number") = "PUT STOCK NUMBER HERE" If iProperties.Value("Project", "Stock Number") = "PUT STOCK NUMBER HERE" 'DONT PUT STOCK NUMBER HERE!!! MessageBox.Show("Part needs assigned a part number. Tell Someone.", "NEW PART") End If Case = "C3 X 4.1" iProperties.Value("Summary", "Keywords") = "C3 X 4.1 MS CHANNEL" G_IR=0.237489154 G_ER=0.08 G_H=3 G_W=1.41 G_T=0.17 G_C=0.616175 G_T1=0.273 G_NG=0.0524 iProperties.Value("Project", "Stock Number") = "56-60C3X4.1-01" If iProperties.Value("Project", "Stock Number") = "" MessageBox.Show("Part needs assigned a part number. Please Tell someone.", "NEW PART") End If
For the life of me. We have tried a bunch of different ideas and are at a loss. Any help you guys have would be great.
We know that the rule runs as we get our assigned error message, however the parameters do not update any dimensions.
This rule was created from an internal rule that works just fine. We just want to make it external, so that we can push new code out with newer information.
Thanks.
Solved! Go to Solution.