Example 4: Macros
Your task is to design a series of fan housings. The housings are identical except that the air intakes and exhaust ports of each housing must vary to accommodate fans of different power. It is important that the area of the air intakes equal the area of the exhaust ports to maintain proper air flow through the housing. Unfortunately, the intakes are wedge-shaped while the exhaust ports are slots. This makes the area calculations more complicated.
To accomplish this task, you'll use an Creo Elements/Direct Drafting macro that:
1. Calls Parametric Design to design the air intakes.
2. Calculates the area of the intakes.
3. Transforms the area value into the exhaust port size.
4. Calls Parametric Design to design the exhaust ports.
Most of the setup for this example has been done for you. The part, demo04.mi, has already been constrained and parameterized, and the macros you need are already defined in the file demo04.mac. As you work through this example, focus on the contents of the macro and how they relate to what you see on your screen.