Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Shara.El

Pages: [1]
1
PCS General Board / Re: generate C code from state machine diagrams
« on: April 06, 2022, 04:26:46 pm »
I would go for the add-in route.
The code templates are really hard to understand, and they will only get you so far. At a certain point you'll bump into the limitations of a template based approach.
Using an add-in you are free to code the logic you need.

It's going to be more work to setup, as you'll need to build the framework code as well, but it will pay off in the long term.

Geert

Thank you very much for your guidance, Geert. Then I guess I need to continue working on the add-in.  :)

2
PCS General Board / Re: generate C code from state machine diagrams
« on: April 06, 2022, 04:22:52 pm »
I have done it with a script some time ago and it was near as trivial. An add-in is not really needed except that the call might be a bit handier. You should keep your fingers off that awkward macro for creating code.

OTOH: creating code from a model seems odd. That makes sense if you change the model every day. If that's the case you're doing something wrong.

q.

Thanks for your answer qwerty. I managed to modify the C generation templates according to our team's coding guidelines a while ago, and I should admit that was pretty annoying! :D
What I'm trying to do is part of a bigger project. The purpose of it is to save time for a team of designers that work on a large-scoped project, by auto-generating the code.

3
I am aware it has been a long time, so I'm replying for those who have the same issue and are reading this post.

I had the same problem. I solved the issue by deleting the .wix files, and downloading the folders "EARefDataSplitter" and "TextHelper".

4
PCS General Board / generate C code from state machine diagrams
« on: April 05, 2022, 06:19:19 pm »
I am working on an “EA custom C code generator” that generates .c and .h codes from EA state machine diagrams correctly.
I'm using an Ultimate Edition of Enterprise Architect. And I have been investigating two approaches, modifying the FSM_C auto code generation templates and creating an add-in for the purpose.
Is there anyone that knows which approach is more efficient?
Is it even possible to succeed by only modifying the FSM_C?
Has anyone ever tried this before, and can guide me?
I would appreciate any help in this regard.

Pages: [1]