*GraphicPair() - user-defined graphic pair

Creates a user-defined pair graphic.

Syntax

*GraphicPair(gr_name,"gr_label",gr_defn, arg_1, arg_2,, arg_n)

Arguments

gr_name
The variable name of the graphic pair.
Data type: varname
gr_label
The descriptive label of the graphic pair.
Data type: label
gr_defn
The definition for the user-defined graphic.
Data type: varname
arg_1, arg_2, ..., arg_n
User-defined arguments being passed into the graphic.
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(gr_knuckle, "Knuckle", gra_kn, 
                                    b_kn, 
                                    p_lbj, 
                                    p_ubj, 
                                    p_spalign, 
                                    p_wc)

Context

*BeginMdl()

*DefineAnalysis()

*DefineGraphic()

*DefineSystem()

Comments

The definition of the user-defined graphic pair is specified by a *DefineGraphic().

The number and type of arguments depends on the definition for the user-defined graphic pair.

To avoid the graphic being visible during MotionSolve result animation in HyperView, set the hide_in_post attribute to {{true}}. For example: *Set(gra_link.hide_in_post, true). This option will set the graphic component's visibility to be turned off when the result H3D is loaded in HyperView.