cancel
Showing results for 
Search instead for 
Did you mean: 

FEMAP API and Referenced Groups

Creator
Creator

In FEMAP API programming, it is possible to list referenced groups using entity object method "ReferencedGroups".

 

But how do you add or remove a referenced grouped from a group entity ?

2 REPLIES

Re: FEMAP API and Referenced Groups

Siemens Phenom Siemens Phenom
Siemens Phenom

The "ReferencedGroups" method from the Group object returns a Set object, so you can manipulate that Set..adding or removing. If you do make changes though, you have to remember to save/Put the Group object to save the changes in the database.  Some code like this will work...

The HTML Clipboard

Sub Main
    Dim App As femap.model
    Set App = feFemap()

    Dim g As femap.Group
    Set g = App.feGroup

    Dim s As femap.Set
    Set s = App.feSet

    s.Add( 7 )
    s.Add( 8 )

    g.ReferencedGroups.AddSet(s.ID)
    g.title = "Reference 7+8"
    g.Put(100)
End Sub

Re: FEMAP API and Referenced Groups

Creator
Creator

Great, thank you for the quick reply. Now I understand.