- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, what I want to achieve, is simple "if there are x number of holes, perform this equation" via parameter.
I got "a" defined in mm and "hole" defined without unit.
I run into trouble when creating the unit less parameter for the required equation
"invalid string ";" in expression"
Here is my code
if((hole==2; (a / 2)); (hole==3; ((a * sqrt(3)) / 2)); ((hole==4; (a * sqrt(2)) / 2)); (hole==5; ((a * sqrt(50 + 10 * sqrt(5))) / 10)); (hole==6; a); (hole==7; (a / (2 * sin(PI / 7)))); (hole==8; (a * sqrt((2 + sqrt(2)) / 2))); 0)
Could anyone help me review this?
Solved! Go to Solution.