Thanks Barry, that’s a good start – I’m now halfway there!
When I first add a new zone to the plan, the parameters output to the schedule correctly. However, if I then edit the zone footprint, the schedule doesn’t update, although it happily reads in a second new zone.
However, if I edit the zone footprint, then open the Zone Settings Dialogue and close it again, the schedule then updates – it’s like the schedule only registers that the parameters have changed when the Settings Dialogue is opened (or is this the only time the
parameters area_m2 = area_m2 line is called?)
For clarity, the relevant code in my Master script is:
! output string = 'A:' + output string + written unit area_m2 = AreaM2Text + area_m2 + ' sq m' area_ft2 = AreaFt2Text + area_ft2 + ' sq ft' area_acre = AcreText + area_acre + ' ac' area_hect = HectText + area_hect + ' ha' calc_acre = CalcAcText + calc_acre + ' ac' calc_hect = CalcHaText + calc_hect + ' ha' ! Update for scheduling parameters num_area_m2 = num_area_m2 parameters cat_title = cat_title parameters area_m2 = area_m2 parameters area_ft2 = area_ft2 parameters area_acre = area_acre parameters area_hect = area_hect parameters calc_acre = calc_acre parameters calc_hect = calc_hect
Any thoughts on what I need to do? It feels like it’s really close now!