Set contact step control

Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 741
First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member

How to set contact step control through scripting?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 741
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member

    Adapt the following code:

    analysis=ExtAPI.DataModel.Project.Model.Analyses[0]
    contstep=analysis.Children[7] # This is not a robust way to reference the boundary condition - adapt to your own needs!
    contstep.CurrentStep=2 # Define step no to make Alive or Dead
    contstep.Status=ElementControlsStatus.Dead