*DefineGraphic()

Indicates the beginning of a user-defined graphic definition block.

Syntax

*DefineGraphic(gra_def_name,arg_1, arg_2,..., arg_n)

Arguments

gra_def_name
The variable name of the graphic definition.
Data type: varname
arg_1, arg_2, ..., arg_n
Arguments being passed into the graphic definition.
Data type: user-defined

Example

*BodyPair(b_kn, "Knuckle", 
p_kn_cm)
*PointPair(p_ubj, "Upper ball joint")
*PointPair(p_lbj, "Lower ball joint")
*PointPair(p_spalign, "Spindle align point")
*PointPair(p_wc, "Wheel center")
*DefineGraphic(gra_kn, body_1, 
 p_1, 
 p_2, 
 p_3, 
 p_4)
 *GraphicPair(cyl1, "kingpin", cylinder, body_1, 
 p_1, p_2, 10)
 *GraphicPair(sph1, "Lwr ball jt, sphere, body_1, 
 p_1, 15)
 *GraphicPair(sph2, "Upr ball jt, sphere, body_1, 
 p_2, 15)
 *GraphicPair(cyl2, "Spindle align", cylinder, 
 body_1, 
 p_3, p_4, 10)
*EndDefine()
*GraphicPair(gra_kn, "Knuckle", b_kn, 
 p_lbj, 
 p_ubj, 
 p_spalign, 
 p_wc)

Context

*BeginMdl()

Comments

A *DefineGraphic() statement defines a user-defined graphic which can contain other *Graphic() primitive statements or other user-defined *Graphic() statements. The number and type of user-defined arguments depends on the graphic.

You are allowed to define only one body and it must be the first argument.

Multiple graphic entities can be created using the same definition.

Every *DefineGraphic() statement requires an ending *EndDefine() statement.