Cancel
Showing results for 
Search instead for 
Did you mean: 

API Problem calling back a SelectMultiID with Output Sets

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi,

 

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.

 

Emmanuel

 

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

 

2017-07-11_15h38_19.png

IWhen

3 REPLIES

Re: API Problem calling back a SelectMultiID with Output Sets

Siemens Phenom Siemens Phenom
Siemens Phenom

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

Re: API Problem calling back a SelectMultiID with Output Sets

Siemens Phenom Siemens Phenom
Siemens Phenom

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. 

Re: API Problem calling back a SelectMultiID with Output Sets

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

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.

 

Best Regards