Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Heating/ cooling design script to adjust variables and export data

Hi All,

I am using design builder to calculating design heating and cooling loads. I require multiple outputs based on different glazing selections and Summer/Winter Design Weather risks. Currently my process is to:

  1. Change the modeling parameters I require
  2. Run the heating and cooling design calculations
  3. Manually export the results for each (including coincident cooling, non-coincident cooling, and heating)

I would like to know if it is possible to automate this process using a script. I have have had a look at the example scripts and can get some of these to work however I am a bit stuck trying to cutomise them. I am able to bring up a message box before the heating simulation (example code I am using below) however I am stuck after that.

using System.Windows.Forms;

using DB.Extensibility.Contracts;

public class ExampleScript : ScriptBase, IScript

{

public override void BeforeHeatingSimulation()

{

MessageBox.Show("Simulation is about to start.");

}

}

Resources I have looked at include:

  • Extensibility Tools User Guide
  • DesignBuilder Help Manual

Any help/ ideas would be very much appreciated.

Michael.

Heating/ cooling design script to adjust variables and export data

Hi All,

I am using design builder to calculating design heating and cooling loads. I require multiple outputs based on different glazing selections and Summer/Winter Design Weather risks. Currently my process is to:

  1. Change the modeling parameters I require
  2. Run the heating and cooling design calculations
  3. Manually export the results for each (including coincident cooling, non-coincident cooling, and heating)

I would like to know if it is possible to automate this process using a script. I have have had a look at the example scripts and can get some of these to work however I am a bit stuck trying to cutomise them. I am able to bring up a message box before the heating simulation (example code I am using below) however I am stuck after that.

using System.Windows.Forms;

using DB.Extensibility.Contracts;

public class ExampleScript : ScriptBase, IScript

{

public override void BeforeHeatingSimulation()

{

MessageBox.Show("Simulation is about to start.");

}

}

Resources I have looked at include:

  • Extensibility Tools User Guide
  • DesignBuilder Help Manual

Any help/ ideas would be very much appreciated.

Michael.

Heating/ cooling design script to adjust variables and export data

Hi All,

I am using design builder to calculating design heating and cooling loads. I require multiple outputs based on different glazing selections and Summer/Winter Design Weather risks. Currently my process is to:

  1. Change the modeling parameters I require
  2. Run the heating and cooling design calculations
  3. Manually export the results for each (including coincident cooling, non-coincident cooling, and heating)

I would like to know if it is possible to automate this process using a script. I have have had a look at the example scripts and can get some of these to work however I am a bit stuck trying to cutomise them. I am able to bring up a message box before the heating simulation (example code I am using below) however I am stuck after that.

using System.Windows.Forms;

using DB.Extensibility.Contracts;

public class ExampleScript : ScriptBase, IScript

{

public override void BeforeHeatingSimulation()

{

MessageBox.Show("Simulation is about to start.");

}

}

Resources I have looked at include:

  • Extensibility Tools User Guide
  • DesignBuilder Help Manual

Any help/ ideas would be very much appreciated.

Michael.