Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C Code > Generating C Code > Overview of generating C code (C code) > Overview of modeling C code (C code) > Overview of modeling C code (C code) > State diagram mappings - submachine state (C code)
  
State diagram mappings - submachine state (C code)
ACS generates code for the State Diagrams that are referenced by Submachine States when the following conditions are true:
The Submachine references a State Machine that is part of the same Class as the referencing Submachine.
Transitions enter and exit the Submachine through its Connection Point References.
* 
Modeler creates a Connection Point Reference for each Entry State and Exist State the referenced State Machine owns. On a State Diagram, you can populate a Submachine's Connection Point References: right-click the Submachine, point to Populate, and then click Connection Point References.