How do deactiviate graphics in motionview

Edward Alexander_22366
Edward Alexander_22366 New Altair Community Member
edited October 2020 in Community Q&A

Hi

I am trying to deactivate a body and its associated graphic midway through motion solve using atemplate

If I use the following command 

<deactivate

element_type = "graphic"

element_id = "{g_Solid13.idstring}"

/>

nothing happens, im thinking its not possible to deactivate a graphic mid simulations, which seems strange as they can be deactivated before hand. Is it possible?

 

Answers

  • Chris Coker_21312
    Chris Coker_21312 New Altair Community Member
    edited October 2020

    Hello-

    Our help for "deactivate" lists the supported entities for this function:

    The element_type must be one of the following keywords:

    Keyword
    Corresponding model element(s)
    "BEAM"
    Force_Beam
    "BUSH"
    Force_Bushing
    "CONTACT"
    Force_Contact
    "COUPLER"
    Constraint_Coupler
    "CVCV"
    Constraint_CVCV
    "CVSF"
    Constraint_CVSF
    "DIFF"
    Control_Diff
    "FIELD"
    Force_Field
    "FORCE"
    All action forces.
    "FRICTION"
    Force_JointFriction
    "GCON"
    Constraint_General
    "GEAR"
    Constraint_Gear
    "GFORCE"
    Force_Vector_[One|Two]Body - Force and torque
    "GSE"
    Control_StateEqn - of type USERSUB
    "JOINT"
    Constraint_Joint
    "JPRIM"
    Constraint_Jprim
    "LSE"
    Control_StateEqn - of type LINEAR
    "MATE"
    Constraint_Mate
    "MFORCE"
    Force_FlexModal
    "MOTION"
    Motion_Joint or Motion_Marker
    "NFORCE"
    Force_MultiPoint
    "PFORCE"
    Force_Penalty
    "PTCV"
    Constraint_PTCV
    "PTDCV"
    Constraint_PTdCV
    "PTDSF"
    Constraint_PTdSF
    "PTDSFF"
    Force_PTdSF
    "PTSF"
    Constraint_PTSF
    "SENSOR"
    Sensor_Event or Sensor_Proximity
    "SFORCE"
    Force_Scalar_[One|Two]Body - Force or Torque
    "SFSF"
    Constraint_SFSF
    "SPDP"
    Force_SpringDamper
    "TFSISO"
    Control_SISO
    "UCON"
    Constraint_UserConstr
    "VFORCE"
    Force_Vector_[One|Two]Body - Force only
    "VTORQUE"
    Force_Vector_[One|Two]Body - Torque only
    "YFORCE"
    Force_StateEqn

     

    Note that Graphics are not supported.

    The graphics themselves are turned into .h3d files, and the geometry is written to the .xml file when written out from MotionView.

     

    Can you explain why you feel you need to turn off a graphic during a simulation?  There is likely another way to achieve your goals.