- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning. I am trying to design a parametric tab and slot box and I am running in to an expression syntax error - the expression is shown in 'red' color and I cannot click OK. I think I am close, but for the life of me I cannot figure this out.
I have 3 different parameter;
- myWidth = 4"
-myFinger = .75"
-nInstancesW = if (myWidth <= 4) then 2 else (floor(myWidth / myFinger))
Then, in my rectangular pattern dialogue;
-Quantity = nInstancesW / 2
Distance = myWidth - myFinger * 3
Essentially what I am trying to accomplish is if the width of my box is less than or equal to 4" than I only want to have 2 instances of my rectangular pattern (the tabs). See image attached for reference. The middle finger is the one I am trying not to include if the 'myWidth' is less than or equal to 4. Hope this makes sense and hopefully I am close to the proper solution. I feel like it may just be a syntax error but I have tried several different methods and getting the same result. --and yes I am aware that there are websites to general this sort of tab and slot box but it's important for me to learn how to do it myself. Thanks for any help!
Solved! Go to Solution.