iLogic Pattern component issues

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to drive a pattern with iLogic and keep running into a problem.
I am working on a walkway which has 3 requirements based on slop angle.
1. 0-10° No Cleats
2. 10-15° Cleats spaced @ 450mm
3. 15-18° Cleats spaced @ 400mm
4. 18-20° Cleats spaced @ 350mm
I can make case 2, 3 & 4 work without a problem, but when I drive the model below 10° I run into an issue which I can't find a way to resolve.
My iLogic code removes the Cleat, and the Pattern below 10°
When I drive it back above 10° it adds the cleat and makes the pattern
All good so far...
Problem is, the parameter for the Cleat Spacing gets re-written as a number, rather than staying a linked parameter.
So when I drive it above 15° the spacing doesn't change.
Below is my iLogic. Does anybody out there have some suggestion as to how I can make this work?
Select Case PITCH Case 0 To 9.9 CLEAT_SPC = 450 CLEAT_NO = Ceil((WW_LG - 300) / CLEAT_SPC) Case 10 To 14.9 Dim CLEAT_600 = Components.Add("CLEAT 600", "GW340.iam") Constraints.AddFlush("C BASE", "CLEAT 600", "BASE", "SW01 MESH", "MESH TOP") Constraints.AddFlush("C MID", "CLEAT 600", "CTR", "SW01 MESH", "MESH CTR") Constraints.AddMate("C EDGE", "CLEAT 600", "MID", "SW01 MESH", "MESH START", offset := - (CLEAT_SPC / 2)) CLEAT_SPC = 450 CLEAT_NO = Ceil((WW_LG - 300) / CLEAT_SPC) Dim CLEAT_Pattern = Patterns.AddRectangular("CLEAT Pattern", "CLEAT 600", CLEAT_NO, CLEAT_SPC, "SW01 MESH", "Z Axis", columnNaturalDirection := False, rowCount := 1, rowOffset := 1.0 in, rowEntityName := "Y Axis", rowNaturalDirection := False) Case 14.9 To 17.9 CLEAT_SPC = 400 CLEAT_NO = Ceil((WW_LG - 300) / CLEAT_SPC) Case >= 18 CLEAT_SPC = 350 CLEAT_NO = Ceil((WW_LG - 300) / CLEAT_SPC) End Select
I have tried re-placing the cleat, and remaking the pattern for each condition, but run into issues there also...