Skip to content

Commit 79233ba

Browse files
committed
fix: Add System assembly reference for DataTable in ColorSplasher
The DataTable class was not properly imported because the System assembly was not referenced. Added clr.AddReference('System') to fix the issue. Fixes #2564
1 parent b3a1270 commit 79233ba

File tree

1 file changed

+1
-0
lines changed
  • extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/ColorSplasher.pushbutton

1 file changed

+1
-0
lines changed

extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/ColorSplasher.pushbutton/script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from pyrevit.script import get_logger
2828
import clr
2929
clr.AddReference('System.Data')
30+
clr.AddReference('System')
3031
from System.Data import DataTable
3132

3233

0 commit comments

Comments
 (0)