Hat tip again to Gareth for the link to the excellent work being done by Jean-Marc Prieur, so if you need your model and your code to stay in sync, it looks like we have some tooling to help automate this. I've not had chance to have a play with this yet, but its now high on my task list for this week :) .... I'll post more on this once I've had a chance to play, but for now here's the link to Gareth's entry GarethJ's WebLog : Help in tackling the hard problem of model<-->code synchronization