Default parameter values
Advanced topic - requires coding skills
Providing parameter values associated with CLEM components is one of the difficult tasks for users. They are assisted by the provision of toolboxes and examples of components already set up. There are times when the user will add a new model (Add new model menu option) and this section explains how to provide default values when a new instance of a component (model) is added to the simulation tree.
CLEM uses the Visual Studio C# approach for adding default values whereby the = value; is assigned at the declaration of the property in the code. This will ensure this value is assigned when a model is first opened, or when a new property is first added to an existing simulation upon opening.
Previously CLEM used the System.Component.DefaultValue attribute and a call to SetDefaults() in the constructor of each model class. This approach is no longer used, but some components may still use have this code.