How do I access pre-existing result objects in Composite Failure Tool?
Ayush Kumar
Member, Moderator, Employee Posts: 450
✭✭✭✭
Answers
-
I have found a way, in case anyone someone has a more elegant method, please post. Thanks!
for child in ExtAPI.DataModel.Tree.AllObjects: if child.GetType().ToString() == 'Ansys.ACT.Automation.Mechanical.Results.CompositeFailureResults.CompositeFailureResult': child.AddFigure()
2 -
a more elegant method :
ExtAPI.DataModel.Project.GetChildren[Ansys.ACT.Automation.Mechanical.Results.CompositeFailureResults.CompositeFailureResult](True)
2