Skip to content

Commit 20cab30

Browse files
committed
add missin slope unit symbol label message
1 parent ebc33cc commit 20cab30

File tree

1 file changed

+7
-1
lines changed
  • extensions/pyRevitTools.extension/pyRevit.tab/Modify.panel/3D.pulldown/Measure.pushbutton

1 file changed

+7
-1
lines changed

extensions/pyRevitTools.extension/pyRevit.tab/Modify.panel/3D.pulldown/Measure.pushbutton/script.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
slope_unit_symbol = slope_format_options.GetSymbolTypeId()
2626
slope_unit_symbol_label = None
2727
if not slope_unit_symbol.Empty():
28-
lslope_unit_symbol_label = DB.LabelUtils.GetLabelForSymbol(slope_unit_symbol)
28+
slope_unit_symbol_label = DB.LabelUtils.GetLabelForSymbol(slope_unit_symbol)
2929

3030
# Global variables
3131
measure_window = None
@@ -297,6 +297,12 @@ def __init__(self, xaml_file_name):
297297
"Length Units (adjust in Project Units): \n" + length_unit_label
298298
)
299299
self.Height = self.Height + 20
300+
if not slope_unit_symbol_label:
301+
self.show_element(self.project_unit_text)
302+
self.project_unit_text.Text = self.project_unit_text.Text + (
303+
"\nSlope Units (adjust in Project Units): \n" + slope_unit_label
304+
)
305+
self.Height = self.Height + 20
300306

301307
# Handle window close event
302308
self.Closed += self.window_closed

0 commit comments

Comments
 (0)