447 Views
Thanks for this, Tomas - very sorry it's taken me a while to respond (I know you had emailed as well).
Try the following:
---------------------------------------
LEAP.ActiveArea = "Freedonia"
LEAP.ActiveScenario = "Reference"
PRINT LEAP.ActiveArea.Name
PRINT LEAP.ActiveScenario.Name
LEAP.Activeview = "Analysis"
LEAP.ActiveYear = 2010
set temp = AddCategory("test", 1, "million", "household")
----------------------------------------
I know this is mysterious, and it's not mentioned in the documentation. Some of the branch manipulation methods in the API return a value and therefore require assignment. In this example, 'temp' is a LEAP Branch object. You may not need to perform any further operations with 'temp', but it's assignment is required in order to add the category.
Best,
Taylor