Using OpenAPI to Extract State Machine Data

Hi all,

I'm very new to MagicDraw, OpenAPI, and Java programming in general (mostly python and MATLAB experience) and am attempting to write a script to extract state machine information from Content Diagrams in MagicDraw to export them to Stateflow in MATLAB for further simulation. Ideally, my workflow would look something like this:

  1. Open desired state machine in MagicDraw
  2. Run custom state machine data extraction tool to generate an .m script for MATLAB
  3. Run .m script in MATLAB to create Stateflow model

Does something like this sound plausible? Has anyone worked on a similar tool?

In the past, I've had good luck with online forums like this when learning new APIs so I'm very appreciative of any tutorials or guidance anyone is able to provide me.

 

Thanks!