From aa766af1e59eb49132b28c5ff0ce80d3b6742c1e Mon Sep 17 00:00:00 2001 From: Ehsan Iran-Nejad Date: Mon, 7 Jan 2019 09:14:37 -0800 Subject: [PATCH] Added Hectares to average area math per issue #454 --- .../Calculate Average Area.pushbutton/script.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/Tools.stack2/Analyse.pulldown/Calculate Average Area.pushbutton/script.py b/extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/Tools.stack2/Analyse.pulldown/Calculate Average Area.pushbutton/script.py index 67096fa4b..8e6afdcc5 100644 --- a/extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/Tools.stack2/Analyse.pulldown/Calculate Average Area.pushbutton/script.py +++ b/extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/Tools.stack2/Analyse.pulldown/Calculate Average Area.pushbutton/script.py @@ -101,5 +101,7 @@ def calc_and_print(items, item_type, type_name, match_name): print('\nAVERAGE AREA OF THE SELECTED TYPE IS:' '\n{}' '\n =======================================' - '\n{} ACRE'.format(revit.units.format_area(average), - average / 43560)) + '\n{} ACRE' + '\n{} HECTARES'.format(revit.units.format_area(average), + average / 43560, + average / 107639))