*SetImplicitGraphicDefault()

Sets the default state of the MDL model's implicit graphics.

Syntax

*SetImplicitGraphicDefault (entity type, visible, zoom, scale)

Application

MotionView

Inputs

entity type
The entity type, such as points, bodies, or joints.
visible
Determines if the graphics are visible or not visible:
1
On
2
Off
zoom
Allows you to change the size of the graphic.
1
Graphic size changes when using zoom.
0
Graphic remains the same size relative to the screen.
scale
The size of the graphic.

Context

*BeginModelDefaults()

Example

*Id("MotionView", 5, x)
*BeginModelDefaults()
    *SetImplicitGraphicDefault("Implicits", 1, 1, 100)
    *SetImplicitGraphicDefault("Points", 1, 1, 100)
    *SetImplicitGraphicDefault("Bodies", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_BallJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_RevJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_TransJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_UJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_InlineJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_FixedJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_InPlaneJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_CylJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_PlanarJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_CVJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_AtPointJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_OrientJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_ParallelJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Joints_PerpendicularJoints", 1, 1, 100)
    *SetImplicitGraphicDefault("Couplers", 1, 1, 100)
    *SetImplicitGraphicDefault("Bushings", 1, 1, 100)
    *SetImplicitGraphicDefault("SpringDampers", 1, 1, 100)
    *SetImplicitGraphicDefault("SpringDampers_CoilSprings", 1, 1, 100)
    *SetImplicitGraphicDefault("SpringDampers_TorsionSprings", 1, 1, 100)
    *SetImplicitGraphicDefault("Beams", 1, 1, 100)
    *SetImplicitGraphicDefault("PolyBeams", 1, 1, 100)
    *SetImplicitGraphicDefault("Forces", 1, 1, 100)
    *SetImplicitGraphicDefault("Forces_ActionOnlyForces", 1, 1, 100)
    *SetImplicitGraphicDefault("Forces_ActionOnlyForces_TransForces", 1, 1,
                               100)
    *SetImplicitGraphicDefault("Forces_ActionOnlyForces_RotForces", 1, 1, 100)
    *SetImplicitGraphicDefault("Forces_ActionOnlyForces_TransRotForces", 1, 1,
                               100)
    *SetImplicitGraphicDefault("Forces_ActionReactionForces", 1, 1, 100)
    *SetImplicitGraphicDefault("Forces_ActionReactionForces_TransForces", 1,
                               1, 100)
    *SetImplicitGraphicDefault("Forces_ActionReactionForces_RotForces", 1, 1,
                               100)
*SetImplicitGraphicDefault("Forces_ActionReactionForces_TransRotationForces", 
                           1, 1, 100)
    *SetImplicitGraphicDefault("Forces_ActionReactionForces_LOATransForces", 
                               1, 1, 100)
      *SetImplicitGraphicDefault("Forces_ActionReactionForces_SingleCompRotForces", 
                           1,  1, 100)
    *SetImplicitGraphicDefault("Motions", 0, 0, 100)
    *SetImplicitGraphicDefault("Motions_RotMotions", 0, 0, 100)
    *SetImplicitGraphicDefault("Motions_TransMotions", 0, 0, 100)
*EndModelDefaults()

Comments

Setting the defaults for a "parent" also sets all "child" entities. For example, setting joints sets all joint types.