Set contact step control

Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 871
100 Answers 500 Comments 250 Likes First Anniversary
✭✭✭✭

How to set contact step control through scripting?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 871
    100 Answers 500 Comments 250 Likes First Anniversary
    ✭✭✭✭

    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