The TreeAge Pro 2007 Object Interface allows you to manipulate trees and run analyses
using program scripts rather than via the user interface.
For example, you could write a script to open a tree, modify some variable values,
run a cost-effectiveness analysis, and place the output from that analysis in
an Excel workbook.
You could also use the Object Interface to automate analysis execution and results handling.
Then you could run a set of long analyses overnight and review the output in the morning.
In order to use the TreeAge Pro 2007 Object Interface, you must have...
- TreeAge Pro 2007 Excel or TreeAge Pro 2007 Suite installed and authorized.
Each product includes the Excel Module.
- A working knowledge of scripting techniques/languages.
In our examples, we will use Visual Basic within Microsoft Excel.
- A reference to the TreeAge Pro 2007 object library in your development environment.
In the Microsoft Visual Basic Editor, select Tools>References.
Then check the box labeled "TreeAge Pro 2007.1.0 Type Library". See below.
Documentation of the TreeAge Objects and their methods and properties is available online.
Click here
to access the online documentation.
The TreeAge Pro Object Interface facilitates automation by allowing you to instantiate TreeAge Objects within a script.
Then you can modify the objects' properties and use them to run analyses.
Here are a few of the objects that are available for your use.
Chapter 30 from the User's Manual provides additional information about using the TreeAge Pro Objects.
To help you use the TreeAge Object Interface, we have provided presentation slides, a flash demo and a few Excel workbooks that include sample
code for creating and using the TreeAge Pro objects.
- This
presentation handout describe the Object Interface and its capabilities.
This includes an example workbook that performs the following functions:
- Open TreeAge Pro.
- Open a model.
- Set parameters using data from Excel.
- Calculate Expected Value.
- Change payoff set.
- Run a Monte Carlo Simulation.
- Run a Markov Cohort Analysis.
The documents associated with the slides are available for download.
- This
flash presentation describes how to create simple macros that use the TreeAge Pro Objects.
- This
sample Excel workbook is used in the flash demo above. It contains Visual Basic macros that run a Monte Carlo simulation
and place its output within the workbook.
- This
sample Excel workbook demonstrates the use of Monte Carlo batch event callbacks.
- This
sample Excel workbook demonstrates the use of Markov cycle event callbacks.