Updating model - custom code in files

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
Sheldon
Jr. Member
Jr. Member
Posts: 1
Joined: 13 Sep 2021, 15:22

Updating model - custom code in files

Post by Sheldon »

I use the c++ code generator and when I update a model (Add methods) I have to manual add in my custom code each time. Does anyone have a better way to deal with this?

User avatar
Support Team
Hero Member
Hero Member
Posts: 3158
Joined: 18 Mar 2011, 15:09

Re: Updating model - custom code in files

Post by Support Team »

Hi,

editing generated code is never a good idea. For that reason the UaModeler generates multiple files, including an extra one that holds the "implementation". When generating again you will be asked for overwiting or you will need to merge.

Please check examples in SDK but also in UaModeler documentation to get the basic idea when generating files.
Best regards
Unified Automation Support Team

Post Reply