How to add force reaction (for weak springs)?

Options
Erik Kostson
Erik Kostson Member, Moderator, Employee Posts: 337
50 Answers 100 Comments Second Anniversary 25 Likes
✭✭✭✭
edited April 16 in Structures

We have activated weak springs (analysis settings = On), and want to create automatically a force reaction result for weak springs using ACT scripting.

Best Answer

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 337
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited October 2024 Answer ✓

    below is one way of doing this:

    model = ExtAPI.DataModel.Project.Model
    analysis=model.Analyses[0]
    anset=analysis.AnalysisSettings
    onws=str(anset.WeakSprings)
    solution=analysis.Solution
    
    if onws =='On':
        fr=solution.AddForceReaction()
        fr.LocationMethod=LocationDefinitionMethod.WeakSprings
    
    solution.EvaluateAllResults()