Adding Primitives


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.

Adding Water

Let's start off by adding water.

  1. In the Model Tree, beside Primitives click . The Define Primitive window shows.

  2. For Material, select watr.
  3. Leave the other fields as they are. If we were entering dimensions directly, we could add these here. We want to use parameters, however.
  4. 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 use-parameter-for-property.png 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.

Adding PZT

Now add the PZT, following the same steps as before. Set the Begin and End parameters as so:

Begin X
Begin Y pzt_thk_start 
End X pzt_rad 
End Y pzt_thk_end 

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.

What Next?

Now that we've added our primitives and can see our model, let's talk about how you can explore a model in Designer.

0 out of 0 found this helpful


Please sign in to leave a comment.