By John Flanagan
Use Global Parameters to Create Formulas
Global parameters allow you to create formulas for parametric control over dimensions. In the following example, we want the gap between the desks to be half the width of the desk. We want this distance to automatically adjust when the width is modified.
First, create a global parameter for the width of the desk. Make sure you assign the parameter in the desk type properties. Next, create the ‘’Spacing-Between-Desks’’ parameter and set it to the dimension between the desks.
In the formula field of the ‘’Distance-Between-Desks’’ parameters, type in: [Desk1-Width] / 2. That means the distance will always be half the width of the desk.
Changing the Width automatically adjusts the spacing between the desks.
Below, we create an array of 2 desks and assign the dimension label between the desks. Next, we adjust the array to a different value. The spacing remains consistent.
In my next blog: Ways to Use Global Parameters – Part 4, we will look at using global parameters to control visibility.
Comentários (0 comentários)