Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Nov 14, 2022
1 parent 463ec25 commit 9844b83
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tooltip: Export Selected Sheets as DWG
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
context: doc-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tooltip: Export Selected Sheets as DWG
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
context: doc-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tooltip: Configure the PDF and DWG export settings for the currently active Revit model.
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
context: doc-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tooltip: Export active sheet as PDF
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
context: doc-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tooltip: Export Selected Sheets as PDF
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
help_url: https://revitron-ui.readthedocs.io/en/latest/tools/export.html
context: doc-project
7 changes: 4 additions & 3 deletions lib/revitronui/forms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import revitron
from pyrevit import forms
from pyrevit.forms import SelectFromList, TemplateListItem
from rpw.ui.forms.resources import *


class SelectType:
Expand All @@ -11,15 +12,15 @@ def __init__(self, elementTypes, title):
self.options.append(OptionListTypes(elementType))

def show(self, multiselect=False):
return forms.SelectFromList.show(
return SelectFromList.show(
self.options,
title=self.title,
multiselect=multiselect,
button_name='Select Type'
)


class OptionListTypes(forms.TemplateListItem):
class OptionListTypes(TemplateListItem):

@property
def name(self):
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ blank_line_before_nested_class_or_def = true
coalesce_brackets = true
column_limit = 90
dedent_closing_brackets = true
split_all_comma_separated_values = true
split_all_comma_separated_values = false
split_all_top_level_comma_separated_values = true

0 comments on commit 9844b83

Please sign in to comment.