Using workbench scripting can we get the analysis type of a system?

Erik Kostson
Erik Kostson Member, Moderator, Employee Posts: 312
50 Answers 100 Comments Second Anniversary 25 Likes
✭✭✭✭

Say we have 2 systems in a workbench (WB) project. Can we then extract what analysis types these are using WB scripting?

Best Answer

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 312
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited March 4 Answer ✓

    One possible way of doing this is shown below ( the Name property will give the type of analysis, say modal ,static, etc.):

    s1=GetAllSystems()[0].GetContainer(ComponentName="Setup")
    
    s2=GetAllSystems()[1].GetContainer(ComponentName="Setup")
    
    an1=s1.GetMechanicalSystemType()
    
    an1.Name
    
    an2=s2.GetMechanicalSystemType()
    
    an2.Name
    
This discussion has been closed.