Generating code for individual model elements
You can generate code from the Code menu, the browser, or an object model diagram.
About this task
Before you generate code for a class or package, you must set the active configuration, as if you were generating the executable file for the entire model. For more information, see Setting the active configuration.
To generate code for selected elements, using the Code menu
Procedure
To generate code for selected elements, using the browser
Procedure
To generate code for selected elements, using an object model diagram
About this task
Right-click the class and select Generate Class.