Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Oct 30, 2020
1 parent e27971d commit b371c70
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions revitron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
A shortcut for accessing the application object of the active document.
.. data:: ACTIVEVIEW
.. data:: ACTIVE_VIEW
The active view element.
Expand Down Expand Up @@ -101,7 +101,7 @@
DOC = __revit__.ActiveUIDocument.Document
UIDOC = __revit__.ActiveUIDocument
APP = DOC.Application
ACTIVEVIEW = DOC.ActiveView
ACTIVE_VIEW = DOC.ActiveView
except:
pass

Expand Down
2 changes: 1 addition & 1 deletion revitron/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def roomTag(room, location, typeId = False, viewId = False):
from revitron import _

if not viewId:
viewId = revitron.ACTIVEVIEW.Id
viewId = revitron.ACTIVE_VIEW.Id

clsName = _(room).getClassName()

Expand Down
2 changes: 1 addition & 1 deletion revitron/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
For example sending the currently active sheet to a PDF printer in the network works as follows::
exporter = revitron.PDFExporter(printerAddress, printerPath)
exporter.printSheet(revitron.ACTIVEVIEW,
exporter.printSheet(revitron.ACTIVE_VIEW,
'A0',
'Landscape',
'C:/pdf',
Expand Down
2 changes: 1 addition & 1 deletion revitron/roomtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def create(room, location, tagTypeId = False, viewId = False):
from revitron import _

if not viewId:
viewId = revitron.ACTIVEVIEW.Id
viewId = revitron.ACTIVE_VIEW.Id

for tagId in _(room).getTags():
_(tagId).delete()
Expand Down

0 comments on commit b371c70

Please sign in to comment.