Expression Example

The following example illustrates how you can parameterize the mass of one part in relation to the mass of another, using the Adams View command language in the command window.
If you want to define the mass of a part (part_2) as twice the mass of another part (part_1), you could use the following command:
part modify rigid_body mass_properties part_name=part_2 &
mass=(EVAL(part_1.mass*2))
 
Note:  
You must enclose all Adams View expressions in parentheses.
Using the EVAL function, Adams View instantaneously computes the value for the expression and stores the value in the database. It maintains no parametric relationship. If the mass of part_1 subsequently changes, it doesn't affect the mass of part_2.
If you use the same command without the EVAL function, you get the same instantaneous effect as the previous command. However, if the mass of part_1 changes, then Adams View automatically updates the mass of part_2. Therefore, Adams View maintains the parametric relationship:
part modify rigid_body mass_properties part_name=part_2 &
mass=(part_1.mass * 2)>
Note that some parameters act as though you supplied the EVAL function, even if you did not.
You can find more examples of using expressions in Adams View in the directory: install_dir/aview/examples, where install_dir is the directory in which you installed Adams.