Editing an existing model without closing and reopening it

Hello,

Is it possible to edit an existing FD model without reopening the model many times?

Hi @Geni :wave:

Currently, it is possible to modify the Model object many time through coding and THEN open the model.

If you are looking to update the model while FEM-Design is open on your screen, the current state required to open a new model every time.

We are currently waiting for a feature called update partial .str which will allow to modify object on the fly.

For the time being, you should try to use

var femDesign = new FemDesignConnection();

femDesign.Open(myModelFilePath);
var openedModel = femDesign.GetModel();

// remove first Bar from the model
openedModel.Entities.Bars.RemoveAt(0);
femDesign.Open(openedModel);

in the future, we will be able to call model.Update() or something similar and the model will not need to be open all the time.

I hope it does make sense :slight_smile:

Yeah, it makes sense, thank you!
I am looking forward to this new feature :)!

1 Like