This paper proposes a system of automatic code generation for MASINA (Multiagent Systems in Automation). MASINA is a methodology for specifying Multi-agent systems. The code generator takes MASINA models as input, and from them generates code for each one of the agents of the Multiagent System under construction. The code generation system SISGECOMA, as we call it, is composed of several agents: one that is interface with the user and captures all the information provided by him through MASINA models, another agent performs the verification and validation of the information, finally, another agent generates the Multiagents System.