Let's go ahead and add the PZT and water to our model.
OnScale supports the importing of CAD files, but we can easily create this model using 2D primitives. In fact, we'll only need the rectangle primitive.
Let's start off by adding water.
In the Model Tree, beside Primitives click . The Define Primitive window shows.
- For Material, select watr.
- Leave the other fields as they are. If we were entering dimensions directly, we could add these here. We want to use parameters, however.
- Click Apply.
Your primitive is shown and is also listed under Primitives in the Model Tree. The Properties window shows the properties of the primitive.
Setting the Properties for Water
In the Properties window, expand the Begin and End properties to show each one's X and Y coordinates. To draw a rectangle, you only need to give OnScale the coordinates of two points (the opposite corners of the rectangle).
We'll leave the begin coordinates of our rectangle as they are (0.0, 0.0), but we'll set its end coordinates using parameters.
To use a parameter for a property, click and select Use Parameter for Property. You can then select a parameter to use.
Use the water_xend and water_yend parameters to set the end point of your rectangle.
Note: The water will probably extend beyond your screen. To fix this, from the Model Graphics tab of the ribbon, click Reset View. In the next article we'll talk about the different ways in which you can explore your model.
Now add the PZT, following the same steps as before. Set the Begin and End parameters as so:
Note: The PZT is shown on top of the water because we added it after the water. OnScale assigns a "precedence" to primitives based on the order in which you create them. You can change the precedence of a primitive: just edit the Precedence property.
Now that we've added our primitives and can see our model, let's talk about how you can explore a model in Designer.