Situation: I have existing model in RFEM6 v.12
My Need: To modify existing objects in the model
Problem: There is no 'model.modify' method, but only 'model.Set_ ...' method.
As an example, I would like to move a node, as in the example below. When I use the model.set method, it does not over-write the existing node, and basically nothing happens.
line l = model.get_line(140);
node n1 = model.get_node(l.definition_nodes[0]);
n1.coordinate_2 += 2;
model.begin_modification("node move");
model.set_node(n1);
model.finish_modification();
So I need to follow this in efficient and tedious approach:
- get an instance of the node from the model using the model.get method,
- delete the node from the model
- modify the instance of the node
- set the instance of the node back to the model using the model.set method.
moving a node was just a simplified example, but I have the same problem with any type of modification.
Question: is there a way to modify the objects in the model without deleting them?
Idea: Can you provide a method or modifying class object for functionalities you have in the GUI? for example, a class named 'move_or_copy' with the same inputs as in the GUI?
