Skip to content
| Marketplace
Sign in
Visual Studio>Tools>StateMachineEditor2022
StateMachineEditor2022

StateMachineEditor2022

Saul Scudder

|
256 installs
| (0) | Free
From an XML state machine skeleton code for an event driven state machine is generated, This package contains the generator and a tool to design the xml skeleton
Download

The command to start the tool is under the View menu in the Other Windows list.

Previous versions were for Visual Studio 2013, 2015, 2017 and 2019, This is the version for Visual Studio 2022.

The State Machine Editor is a tool that converts an XML description of a 'state machine' to source code in c# or other languages. A tool to convert user input to the XML is included. An example xml script is loaded from a button under the help selection, it shows the format and can be used to test the different kinds of code generation. A state machine is a set of Transitions where a starting 'State' receives an 'Event', performs an 'Action' and arrives at a final 'State'. A set of these transitions can model complex processes. The State Machine Editor can translate xml state machine models into c#, c++ or vb code, some work is needed to integrate the code into c++ or vb project however complete projects are generated for c#.

The command to start the tool is now under the View menu in the Other Windows list.

The State Machine Editor is a tool that converts an XML description of a 'state machine' to source code in c# or other languages. A tool to convert user input to the XML is included. An example xml script is loaded from a button under the help selection, it shows the format and can be used to test the different kinds of code generation. A state machine is a set of Transitions where a starting 'State' receives an 'Event', performs an 'Action' and arrives at a final 'State'. A set of these transitions can model complex processes. The State Machine Editor can translate xml state machine models into c#, c++ or vb code, some work is needed to integrate the code into c++ or vb project however complete projects are generated for c#.

Features:

  • UI tools to create xml models of State Machines from user selections.
  • States, Actions and Events are added by pressing an add button and naming them.
  • Transitions from one state to another are added by selecting an 'Initial State', an 'Event', an 'Action' to be performed and a 'Final State', then pressing Add Transition
  • An expander displays a list of all transitions in a state machine. Selecting in the list re-selects the individual parts of the transition chosen. To be viewed or deleted.
  • A button in the tool's help expander generates an example state machine.
  • Unused states or dead ends can be traced using the Analyze tool on the menu.
  • Edit sessions are persisted by saving and loading the xml.
  • A button press converts the xml models into source code. Either:
  • A complete state machine in c#.
  • State machine code in c++ or vb (it will need edits to use.)
  • Complete c# Windows Console projects with the state machine source and test events
  • Complete c# WPF projects with the state machine source and test events
  • Complete c# WPF projects with a different class design in a State Machine Pattern.
  • Parts for a very simple MVC project._

image.png

To learn how to use the State Machine editor press the 'help' when it is showing and then press ' load example', look over the example, then press 'generate a WPF project' open the generated project and examine, compile and debug it. Try generating other output types,

Thank you for using the State Machine Editor Tool 2022

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft