Using a second time a SelectMultiID method on a Set to select Output Sets, the content of the Set is reset to the active output set only.
When trying with other entities like group or load set, the first selection is given in the second call. I can't find a way to do that with Output sets.
It works using the Select command but I would prefer to use the SelectMultiID. Any Ideas ?
I tried with Femap 11.3.2 and 11.4.
Sub Main Dim App As femap.model Set App = feFemap() Dim OutSetSet As Set Set OutSetSet = App.feSet rc = OutSetSet.SelectMultiID(FT_LOAD_DIR,1,"Select Output Sets") rc = OutSetSet.SelectMultiID(FT_LOAD_DIR,1,"Select Output Sets") End Sub
Solved! Go to Solution.
Here are two ways to do this:
Sub Main Dim App As femap.model Set App = feFemap() Dim oSet As femap.OutputSet Set oSet = App.feOutputSet App.feSelectOutputSets("Select Output Sets",oSet) 'Alternate Method Dim oSet2 As femap.Set Set oSet2 = App.feSet oSet2.AddAll(FT_OUT_CASE) oSet2.SelectMultiID(FT_OUT_CASE,oSet2.ID,"Select Output Sets") End Sub
Unfortunately this is a bug. As you found, SelectMultiID( ) is not checking any pre-selected items when you are choosing Result Sets...other data types work fine. This problem will be fixed in FEMAP V12.
Ok, thank you for your answers.
Same problem with the alternate solutions proposed by RCatania.
Not really a big problem but good to know the exact reason to stop looking for.