Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Manipulating Model and Saving via OMPython/OMShell

Manipulating Model and Saving via OMPython/OMShell

We are needing to delete connections, add components, and then add connections on a model via a script. Ideally I'd like to use OMPython.

I have been looking at the logs OMEdit products, and I see calls to the server for deleting, adding components, and add connections (deleteConnection, addConnection, etc.). I don't see a call where OMEdit "saves" a model though. Is that done by listing the model contents and writing those straight to the .mo file or did I miss the call?

I do frequently see calls to the diff endpoint.

Re: Manipulating Model and Saving via OMPython/OMShell

Is it setSourceFile"setSourceFile"?

Edited by: vturnerbrc - Feb-10-21 18:38:35
There are 0 guests and 0 other users also viewing this topic
You are here: