Source code sync?

Support

Is there some way to automatically update my source files when the diagram updates without having to constantly regenerate my whole project or copy pasting code from the generate window? i also want my code to be updated not overwritten so that my functions declarations dont get wiped every time

3 April 2024 11:34:57 Anon

Add Comment

Dusan Rodina - softwareideas.net 3 April 2024 12:49:04

-

Hello,

Thank you for your feedback. At present, an automatic update for your source files in response to diagram changes isn't available. The existing process works in the opposite direction, accessible through Ribbon / Process / Reverse Engineering / Update All Reverse Engineered Elements. Currently, source code generation needs to be done only manually.

Regarding your concern about declarations being wiped out, does this issue occur even with the current manual source code generation process? Additionally, it would be helpful to know which programming language you're working with.

The automatic generation will be enlsted to our list of proposed features.

Anon 3 April 2024 13:37:51

RE: -

Hi yes im using C# .NET.

When you use the sourcecode generator and run it in the project folder it creates and overwrites the already active files so forexample if i have a class Person and have a function GetName and i put some code in it. After using the source code generator (forexample after doing a diagram first change) the class gets completely replaced, including the already existing GetName function that had code in it. it gets replaced by the default not implemented exception again. TLDR; source code generator doesnt look at the existing files just replaces them.