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.
Right-click the class and select Generate Class.