How to add force reaction (for weak springs)?

Member, Moderator, Employee Posts: 311
50 Answers 100 Comments Second Anniversary 25 Likes
✭✭✭✭
edited October 2024 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

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

    below is one way of doing this:

    1. model = ExtAPI.DataModel.Project.Model
    2. analysis=model.Analyses[0]
    3. anset=analysis.AnalysisSettings
    4. onws=str(anset.WeakSprings)
    5. solution=analysis.Solution
    6.  
    7. if onws =='On':
    8. fr=solution.AddForceReaction()
    9. fr.LocationMethod=LocationDefinitionMethod.WeakSprings
    10.  
    11. solution.EvaluateAllResults()
This discussion has been closed.