I understand that you are generating DLLs from various Simulink models, and you would like to pre-populate the configuration parameters for each of these models to match your current model's settings. You would also like to know how to build models from the command line.
For sharing configuration parameters between models, you can use Configuration References. This option lets you specify a set of configuration parameters that you can use in multiple models without re-specifying the whole set each time. The following example will show you how to convert your current model's configuration parameters into a configuration reference that can be shared:
For building your model from the command line, you can use the 'rtwbuild' command, as shown:
See the following documentation link for more information: