removeComponentConfiguration
Class: Simulink.VariantConfigurationData
Namespace: Simulink
Remove association between variant configurations of top-level model and referenced model
Since R2022b
Description
Consider a model that has predefined variant configurations and also has a
referenced model in its model hierarchy. The referenced model defines its own variant
configurations. While authoring the variant configurations for the top-level model, you might
associate a referenced model configuration with a top-level variant configuration to populate
the corresponding control variables in the top-level configuration. Use the
removeComponentConfiguration
method to remove this association. For more
information on the workflow, see Compose Variant Configurations for Top Model Using Referenced Model Configurations.
Note
This method requires Variant Manager for Simulink®.
removeComponentConfiguration(
removes an existing association between a variant configuration of the referenced model
vcdTop
,ConfigurationName=topConfig
,ComponentName=refmdl
)refmdl
and the top-level variant configuration
topConfig
that is present in the variant configuration data object
vcdTop
. This operation also makes variant control variables in
topConfig
populated using the referenced model configuration
writeable. You can modify these variables in topConfig
independently of
their values in the referenced model configuration.