te>
<pre><code class="lang-csharp" name="Change parameter">// Before loading the resistor, let's change its value first!
tran.BeforeLoad += (sender, args) =&gt;
{
    // First we need to figure out the timepoint that will be loaded
    double time = tran.GetState&lt;IIntegrationMethod&gt;().Time;

    // Then we need to calculate the resistance for &quot;R2&quot;
    double resistance = 1.0e3 * (1 + time * 1.0e5);

    // Now let's update the parameter
    bp.Resistance = resistance;
    tb.Temperature();
}