Building a Parametric 3D Family |
| |
|
Creating a Parametric Array |
| Next, you’ll make the chair array become parametrically driven. Follow these steps: |
- Click the Family Types command on the Design Bar to launch the Family Types dialog.
- In the Parameters group, click Add.
- In the Parameter Properties dialog, enter the information shown in Figure 10.37 for the parameter, and click OK.
|
Figure 10.37
Adding a new Chairs parameter |
|
- Add a Radius parameter (Figure 10.38), and click OK
|
Figure 10.38
New Radius parameter added |
|
- For the Radius parameter, enter the following in the Formula column: (Diameter / 2). This ensures that the radius is half the diameter.
- For the Chairs parameter, enter the following in the Formula column:
(Diameter *3.14)/2´6.
This formula sets the desired number of chairs relative to the circumference of the table
- Select the chair instance you placed earlier, and select the Array tool. Change the array type in the Options bar to from linear to radial. A red box appears around the chair, with a blue rotate control in the center. Drag the blue control to the intersection of the two reference planes at the center of the table to set the center of the array.
- Define the start of the array by clicking at the origin of the chair, and then move your mouse into the Options bar area. Set the “Move to" radio button to Last, and enter 360 in the Angle field.
- Press the Enter key twice. Revit creates three chairs.
- To constrain the array to the radius of the table, activate the Dimension tool, and choose the Radial placement method from the Options bar:
|
| Insert Image |
- Hold the tool over the table edge, and press Tab until the status bar reads Array : Array : Reference. Click in any whitespace to finish the dimension.
Insert Image
|
- Select the dimension. In the Options bar, set the Label drop-down menu to the Radius parameter. This sets the radius of the array to match the radius of the table.
- Select a chair group, and then the array reference (the line that connects the chair groups and displays the array number). You may need to press Tab until you see the status bar read Array : Array : Reference.
- Once you make this selection, the number of chairs should change to match the value of the formula-driven Chairs parameter (Figure 10.39).
|
Figure 10.39
Assign the array refer-ence to the Chairs pa-rameter |
|
| |
| |