masfaraud / BMSpy

Python Block-Model Simulator. An alternative to simulink in python.
GNU Lesser General Public License v3.0
222 stars 36 forks source link

Can't find Drag and Drop #5

Closed montovaneli closed 6 years ago

montovaneli commented 7 years ago

Hello. First of all, you are doing an incredible job here! I hope we can have a fully functional Python "Simulink" one day! I'm an electrical engineering student and also a Python fan.

So, talking about my issue, I've read all the documentation, but I haven't found a way to access the Drag & Drop Model drawer. Can you help me?

Cheers, Douglas

masfaraud commented 7 years ago

Hi, You can render the model using ds.DrawModel where ds is a DynamicSystem Object. There is an example in https://github.com/masfaraud/BMSpy/blob/master/examples/electric_motor.py

I will push on master soon some major changes with physical modeling, here is an example for electrical modeling: https://github.com/masfaraud/BMSpy/blob/dev_physical/scripts/physical/RC.py See the dev_physical branch.