File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
extensions/pyRevitTools.extension/pyRevit.tab/Modify.panel/3D.pulldown/Measure.pushbutton Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2525slope_unit_symbol = slope_format_options .GetSymbolTypeId ()
2626slope_unit_symbol_label = None
2727if 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
3131measure_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+ "\n Slope 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
You can’t perform that action at this time.
0 commit comments