1. A computer implemented method for generating embedded code from a graphical model in a graphical modeling environment, the method comprising: identifying, by at least one processor, a block diagram for execution, the block diagram containing one or more objects of the graphical model, the graphical model representing a dynamic system having time-changing behavior modeled with differential, difference, or algebraic equations, the graphical model being capable of simulation based on the equations; acquiring, by the at least one processor, at least one general condition related to at least one general code generation goal for the graphical model, the at least one general code generation goal being used with the block diagram to generate embedded code from the graphical model, the at least one general code generation goal relating to one or more characteristics of the code to be generated from the graphical model; configuring, by the at least one processor, one or more parameters within the graphical model based on the at least one general condition related to at least one general code generation goal; identifying, using the at least one processor, at least one object of the graphical model that has parameters that are inconsistent with the at least one general condition related to the at least one general code generation goal; modifying, using the at least one processor, the inconsistent parameters of the graphical model to comply with the at least one general condition; presenting, by the at least one processor, one or more configuration options for specifying at least one detailed code generation goal for the graphical model, wherein the detailed code generation goal configuration options for the graphical model are generated based on the at least one general condition related to the at least one general code generation goal, the at least one detailed code generation goal comprises configuration options based on at least one of: target environment, block diagram optimizations, data, parameters, signals, traceability, reporting, validation, or model interfaces; and generating, by the at least one processor, embedded code in accordance with the at least one detailed code generation goal.