TreeAge Pro


TreeObj.defineDistribution2
v1.0
TreeObj - Object Overview
TreeAge Pro - Table of Contents

TreeAge Pro Interactive - Table of Contents

Documentation Home
TreeAge Website Home
  
Syntax: Function defineDistribution2 (index as Long,
                                             varName as String,
                                             userDesc as String,
                                             sampleWhen as Integer,
                                             type as Integer,
                                             method as Integer,
                                             arg0 as String,
                                             arg1 as String,
                                             arg2 as String,
                                             pythonArg as String) as Long
Description: Used by Excel add-in to create or update a distribution.
Remarks: 

This command may not work if dialogs are open in TreeAge Pro.

For additional details on the arguments, refer to the method getDistributionProperties2.

Sample code: 
    Dim tree As TreeAgeProLib.TreeObj
    Dim app As TreeAgeProLib.ApplicationObj
    Set app = New TreeAgeProLib.ApplicationObj
    
    Set tree = app.getTreeObj("", "") ' current tree
    Error_code = tree.defineDistribution2(dist_index, var_name, dist_description, _
                                         dist_sample_when, dist_type, dist_method, _
                                         dist_arg0, dist_arg1, dist_arg2, python_arg)
	..
See also: getDistributionProperties2