Skip to content

Commit 8ef4acc

Browse files
authored
Merge pull request #1000 from compas-dev/fix-chart-form-rhino8
Temp fix for charting in Rhino 8
2 parents f357367 + cac7e52 commit 8ef4acc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/compas_rhino/forms/chart.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
from System.Drawing import Point
1515
from System.Drawing import Color
1616

17-
clr.AddReference("System.Windows.Forms.DataVisualization")
18-
from System.Windows.Forms.DataVisualization import Charting # noqa: E402
17+
try:
18+
clr.AddReference("System.Windows.Forms.DataVisualization")
19+
from System.Windows.Forms.DataVisualization import Charting # noqa: E402
20+
except Exception:
21+
pass
1922

2023

2124
class Series(object):

0 commit comments

Comments
 (0)