-- -- ZoneData.scr -- -- This script retrieves information for -- each zone in the current model. -- cmd("model.load", getcwd() .. "\\Thermal_Example.eco") file_name = get("model.file") -- Note: this is silly; we've hard-coded the filename above. num_zones = get("model.zones") printf([[ The model in file '%s' has %d zones. %s ]], file_name, num_zones, strrep('-', 10)) for i = 0, num_zones-1 do zone_data = getZoneData(i) printf( [[ Zone %d is named '%s'. It is displayed in color %d and it's selection state is <%s>. ]], i, zone_data.name, zone_data.color, zone_data.selected or 'not selected') end