Hi together,
today i was try to create a list of MemberSets and altough it worked, the members i assigned did not show up in the model.
This code snippet below roughly shows how my application works.
CreateObjects(IEnumerable<IRfemObject> objects) is my method, it takes a lists of Dtos (IRFEMObject) and maps them to an IMessage that the API understands.
public void CreateObjects(IEnumerable<IRfemObject> objects)
{
var result = objects.Select(Map).ToList();
// call to RFEM
_applicationClient.create_object_list(result).GetAwaiter().GetResult();
}
I created this test case:
[Fact]
public void CreateMemberSets()
{
var memberSet = new RfemMemberSet("TestSet", 0, [1, 2, 3, 5, 8], 42, "test comment");
_applicationManager.CreateObjects([memberSet]);
}
}
This should create exactly one MemberSet, but it does so without assigning the members.
In the UI this is what the dialogue looks like, notice the missing member assignments (Stäbe Nr.) in the top right.
I verified that the IMessage has the correct Members assigment by adding a breakpoint before sending the request:
In the debugger you can see the correcty Members assignment (1,2,3,5,8).
Am I doing something wrong or is this a bug?
Any help is deeply appreciated!
Best regards

