SelectLoadsetsDialog.setLoadsets


setLoadsets(loadsets)

setLoadsets(names, [resFiles], [eigens], [harms])

setLoadsets(IDs, [resFiles], [eigens], [harms])

setLoadsets(type, range)

setLoadsets(range)

Specifies the loadsets to be shown as the initial selection The input is given in the form of parallel arrays. The arrays must all be the same length. Each loadset is described by the corresponding value from each array (i.e. the third loadset is specified by the third ID, the third results file, etc). The loadsets can be specified in several ways, by name, by ID or by type and a range of names/IDs. In each case, additionally specifying the results file name/ID, eigenvalue ID and harmonic ID and analysis name/type will clarify to LUSAS which loadset(s) are required. Alternatively, the value in the first array may contain an object, which requires no further clarification. This same principle applies to all functions that input multiple loadsets, and the examples below reflect this. Each input form is legal in each circumstance.

Examples

 redim facArray(2)                                         ' fill an array of factors
 facArray(0) = 1.0
 facArray(1) = 2.0
 redim objArray(2)                                         ' and another of lc objects
 set objArray(0) = db.getLoadset(1, 1)
 set objArray(1) = db.getLoadset(2, "C:\temp\model.mys")
 redim idArray(2)                                          ' and another of lc ids
 idArray(0) = 1
 idArray(1) = 2
 redim resfileArray(2)                                     ' and another of results files
 resfileArray(0) = 1
 resfileArray(1) = "C:\temp\model.mys"
 envelope.addEntries(objArray)
 combination.addEntries(facArray, objArray)                ' 1.0*lc1, 2.0*lc2
 combination.addEntries(facArray, idArray, resfileArray)   ' 1.0*lc1, 2.0*lc2
 db.deleteLoadsets("combination", "all")
 db.deleteLoadsets("loadcase", "all", "structural")        ' will not delete thermal loadcases
 db.deleteLoadsets("loadcase", "all", "my analysis")       ' will only delete loadcases in the analysis "my analysis"
 myArray = db.getLoadsets("1T10")

loadsetsarrayAn array of loadset objects
namesarrayAn array of loadset names
IDsarrayAn array of loadset IDs
resFilesarrayAn array of results files - each may be given as a filename or ID
eigensarrayAn array of loadset eigenvalue IDs
harmsarrayAn array of loadset harmonic IDs
typestringA string to indicate the type of loadset: "Loadcase", "Combination", etc. If not given, all types are assumed
rangestringA string of the form "1T10I2", in this case representing the range from 1 to 10 in steps of 2, i.e. 1, 3, 5, 7 and 9
Return valuenone 

Back to SelectLoadsetsDialog

Back to Overview