Example Usage

The following example can be used as a basis of either the solve or evaluate script.

def runClassDemo_SolutionSelection():
    #Loop around all solution selection objects (NB only 1 currently supported)
    for SolutionSelectionIterator in DesignAssessment.SolutionSelections():
        print "No of Solutions in selection = " + str(SolutionSelectionIterator.SolutionCount)
        print "1st row in Solseln = " + str(SolutionSelectionIterator.SolutionByRow(1).Id)
        for SolutionIterator in SolutionSelectionIterator.Solutions():
            print "Id for solution = " + str(SolutionIterator.Id)
runClassDemo_SolutionSelection()

Release 18.2 - © ANSYS, Inc. All rights reserved.