Modal enviroment

Erik Kostson
Erik Kostson Member, Moderator, Employee Posts: 276
50 Answers 100 Comments Second Anniversary 25 Likes
✭✭✭✭
edited September 9 in Structures

Comments

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 276
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited September 9

    Assuming the harmonic analysis is the 3rd system (so we have 1 static, modal, and harmonic/msup), then the below sets it:

    model = ExtAPI.DataModel.Project.Model
    analysism=model.Analyses[1] # get modal analysis
    analysis=model.Analyses[2] # get harmonic
    modal=analysis.Children[0]
    modal.ModalICEnvironment=None
    

    if we want to set it back to the modal:

    modal.ModalICEnvironment=analysism

This discussion has been closed.