How can I define autotime stepping algorithm through scripting?

Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 867
500 Comments Photogenic Name Dropper Solution Developer Community of Practice Member
✭✭✭✭
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: 867
    500 Comments Photogenic Name Dropper Solution Developer Community of Practice Member
    ✭✭✭✭
    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