Message 1 of 5

Not applicable
08-12-2014
03:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If Parameter("WALLTHICKNESS") <6 And Parameter("FORMED") = "COLD" Parameter("CORNERRAD") =2*Parameter("WALLTHICKNESS") ElseIf Parameter("WALLTHICKNESS") <6 And Parameter("FORMED")= "HOT" Then Parameter("CORNERRAD") =1.2*Parameter("WALLTHICKNESS") End If If Parameter("WALLTHICKNESS")<=10 And Parameter("FORMED")= "COLD" Then Parameter("CORNERRAD")=2.5*Parameter("WALLTHICKNESS") ElseIf Parameter("WALLTHICKNESS")<=10 And Parameter("FORMED")= "HOT" Then Parameter("CORNERRAD")=1.5*Parameter("WALLTHICKNESS") End If If Parameter("WALLTHICKNESS")>10 And Parameter("FORMED")= "COLD" Then Parameter("CORNERRAD")=3*Parameter("WALLTHICKNESS") ElseIf Parameter("WALLTHICKNESS")>10 And Parameter("FORMED")= "HOT" Then Parameter("CORNERRAD")=2*Parameter("WALLTHICKNESS") End If
Can anybody please take alook at this piece of code and tell me why this does not work properly. It's basically driving the corner rads on box section profiles based on the wall thickness. It does change on an update but then reverts back to the original afetr another update!
Parameter Formed is a multi value user parameter with two options, HOT or COLD. the box section is controlled via a form.
Anybody's help will be greatly appreciated thanks.
Solved! Go to Solution.