*GraphicPair() - cylinder pair

Creates a cylinder pair graphic.

Syntax

*GraphicPair(gr_name,"gr_label",CYLINDER, body, point_1, POINT|VECTOR, point_2|vector_2, radius_1, radius_2, length offset [cap_flag], refinement_level)

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
CYLINDER
This argument indicates the graphic is a cylinder pair.
body
The body pair associated with the cylinder graphic pair.
Data type: BodyPair
point_1
The pair of points that specify the location of one end of the cylinder pair.
Data type: PointPair
POINT|VECTOR
A keyword that indicates the alignment method.
point_2|vector_2
An entity variable referring to PointPair or VectorPair which is based on the above keyword which provides the direction of the axis of the cylinder.
Data type: PointPair or VectorPair
radius_1
The radius of the cylinder at one end.
Data type: real
radius_2
The radius of the cylinder at the other end.
Data type: real
length
The length of the cylinder.
Data type: real
offset
Distance by which the origin of the cylinder is offset from point_1.
Data type: real
cap_flag
This argument indicates the end capping method. Valid values are: CAPBOTH|CAPBEGIN|CAPEND
Data type: keyword
refinement_level
Specifies the refinement for tessalation of the graphics for MotionSolve. Refer to the <Post_Graphic MotionSolve XML statement for additional information.
Data type: real

Example

*BodyPair( b_tierod, "Tierod", p_tierod_cg )
  *PointPair( p_itrb, "Inr tierod ball jt" )
  *PointPair( p_otrb, "Outer tierod ball jt" )
 
*GraphicPair( tierod, "Tierod", CYLINDER, 
                                b_tierod, 
                                p_itrb, 
                                POINT, 
                                p_otrb, 
                                10, 
                                CYLINDER11.r1, 
                                , 
                                0.0, 
                                CAPNONE, 
                                3)

Context

*BeginMdl()

*DefineAnalysis()

*DefineGraphic()

*DefineSystem()

Comments

If the alignment method is POINT, the axis of the cylinder is the vector passing through point_1 and point_2.

Providing the length argument is optional for the POINT alignment method. Leave this field blank to specify the distance between point_1 and point_2 as the length of the cylinder.

The cylinder ends are not capped if the last optional argument cap_flag is omitted.

radius_2 is parameterized to radius_1 when the cylinder graphic is created using the MotionView GUI. Specifying a different radius_2 will create a conical graphic.

Specify a value for the offset argument to offset the cylinder graphics from its origin point_1.