How can I define autotime stepping algorithm through scripting?

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

How can I define autotime stepping algorithm through scripting?

Tagged:

Answers

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

    The following code can be adapted:

        settings = ExtAPI.DataModel.Project.Model.Analyses[0].Children[0] # reference analysis settings
        settings.Activate() # activate Analysis Settings Object
        settings.CurrentStepNumber=1 # select active step
        settings.AutomaticTimeStepping=AutomaticTimeStepping.On # activate algorithm
        settings.DefineBy=TimeStepDefineByType.Substeps # define by substeps
        settings.InitialSubsteps=10 # define values
        settings.MinimumSubsteps=5
        settings.MaximumSubsteps=25