Simulink.VariantManager.open
R2026bSyntax
Description
Use the Simulink.VariantManager.open function to open Variant
Manager programmatically for a Simulink® model. You can also use this function to open the
Simulink.VariantConfigurations object dialog box to define and edit
variant configurations and constraints without a Simulink model.
Variant Manager
Simulink.VariantManager.open(
opens Variant Manager for the model or block identified by
modelOrBlock)modelOrBlock. The model must be loaded.
Simulink.VariantManager.open(Model=
allows you to specify the argument using the modelOrBlock)Name=Value syntax.
Variant Configurations Object
Simulink.VariantManager.open(VariantConfigurations=
opens Variant Manager for the varConfigsName,Source=src)Simulink.VariantConfigurations object
named varConfigsName that is defined in the data source specified
by src.