<p>Do you know if I can use Visio to forward-engineer a sequence diagram into code (c#)?</p>

<p>Can it be done with Visio alone or do I need a plugin?</p>

<p>What about other diagrams?</p>

[{'answer_id': 26253, 'author': 'Michael Craig ', 'author_id': 2237, 'author_profile': 'https://Stackoverflow.com/users/2237', 'pm_score': 0, 'selected': False, 'text': "<p>To the best of my knowledge, Visio can only forward-engineer code from class models. </p>\n\n<p>As sequence diagrams only really show paths of communication between objects, I suspect that they do not contain the necessary information, except perhaps in trivial cases, for generating code.  </p>\n\n<p>Objects with any sort of complex behaviour patterns are likely to involve changing run-time states, of which sequence diagrams aren't really capable of capturing.</p>\n"}, {'answer_id': 27059, 'author': 'Garo Yeriazarian', 'author_id': 2655, 'author_profile': 'https://Stackoverflow.com/users/2655', 'pm_score': 2, 'selected': True, 'text': '<p>You have to get the Visio that for users of Visual Studio.  See this link: <a href="http://msdn.microsoft.com/en-us/library/ms182014.aspx" rel="nofollow noreferrer">Visio for Enterprise Architects</a> for more details.  The code generation capabilities are fairly weak and you might end up getting Visio into an inconsistent state.  I know that Visio will let you forward and reverse engineer both code and databases, but both capabilities are very limited and I don\'t recommend doing it.</p>\n\n<p>In my opinion, Visio is a diagramming tool and it should be treated as such.</p>\n'}, {'answer_id': 2702144, 'author': 'Tone', 'author_id': 58523, 'author_profile': 'https://Stackoverflow.com/users/58523', 'pm_score': 1, 'selected': False, 'text': '<p>Looks like the latest version of Sparx Systems Enterprise Architect can forward engineer sequence diagrams</p>\n\n<p><a href="http://sparxsystems.com/products/index.html" rel="nofollow noreferrer">Sparx Systems Enterprise Architect</a></p>\n'}]
['https://Stackoverflow.com/questions/26229', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1782/']