How to add force reaction (for weak springs)?

Erik Kostson
Erik Kostson Member, Employee Posts: 247
50 Answers 100 Comments Second Anniversary 25 Likes
✭✭✭✭
edited October 15 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, Employee Posts: 247
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited October 15 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()
    
This discussion has been closed.