Hello,
I created a simple gantry beam parametric cell with signages, see snap below. Can i make a variation of this parametric cell that indicates the number of signs?
i.e
Variable 1 - 2 no. signs
Variable 2 - 3 no. signs
Variable 2 - 4 no. signs
If so, how can i do it? Thanks.
Crisanto Aquino said:Variable 1 - 2 no. signs Variable 2 - 3 no. signs Variable 2 - 4 no. signs
I mean Variations, not variable.
Hi Crisanto,
You can try use conditional expressions(?:) in your Sign Size variable. For example, if your Sign Size is based on Length, you can use "Length>10?2:1" in Expression builder. It means if Length value>10, Sign Size=2, otherwise Sign Size=1. This is just a simple example, you can create complex expressions if necessary.
Good one! thanks Grace. Since i'm new to this expressions, is there a quick guide/tutorial on how to make simple or more complex expressions?
This Conditional expressions let you use if … else logic(testExpression ? resultIfTrue: resultIfFalse) to get different results based on conditions. It could be true ? true : false and false ? true : false. Conditional expressions can also be combined and nested like other expressions. Below are some examples:
Assume you have variables Length and Width, for conditional expressions, it could be:
true ? 1 : 2
false ? 3 : 4
true ? Length : Width
false ? Length : Width
Length>5 && Width!=2 ? 4:3
Length >5 ? 6: Length< 2 ? 1 : 4
Length >5 ? Length< 8? 6 : 9 : 2