Skip to content

Commit 4db53e2

Browse files
committed
rename rtc
1 parent 5a644b3 commit 4db53e2

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/perisso/core.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from archicad import ACConnection
22
from archicad.releases import Commands, Types, Utilities
33
from .collection import ElementCollection
4-
from .utils import rtc
4+
from .utils import run_tapir_command
55

66
# Connection setup
77
conn = ACConnection.connect()
@@ -22,18 +22,9 @@ def perisso(*, selection=False):
2222
selection: If `True`, only the currently selected elements will be added to the ElementCollection.
2323
"""
2424
if selection:
25-
elements_data = rtc("GetSelectedElements")
25+
elements_data = run_tapir_command("GetSelectedElements")
2626
if len(elements_data["elements"]) == 0:
27-
elements_data = rtc("GetAllElements")
27+
elements_data = run_tapir_command("GetAllElements")
2828
else:
29-
elements_data = rtc("GetAllElements")
29+
elements_data = run_tapir_command("GetAllElements")
3030
return ElementCollection(elements_data["elements"])
31-
32-
33-
def clearhighlight():
34-
"""Clear all highlighting in Archicad."""
35-
_param = {
36-
"elements": [None],
37-
"highlightedColors": [[1, 1, 1, 1]],
38-
}
39-
rtc("HighlightElements", _param)

0 commit comments

Comments
 (0)