We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dd74a2 commit cc98ce4Copy full SHA for cc98ce4
source/RevitDevTool/Visualization/Server/SolidVisualizationServer.cs
@@ -39,7 +39,15 @@ public sealed class SolidVisualizationServer : VisualizationServer<Solid>
39
40
foreach (var solid in VisualizeGeometries)
41
{
42
- var boundingBox = solid.GetBoundingBox();
+ BoundingBoxXYZ boundingBox;
43
+ try
44
+ {
45
+ boundingBox = solid.GetBoundingBox();
46
+ }
47
+ catch
48
49
+ continue;
50
51
var minPoint = boundingBox.Transform.OfPoint(boundingBox.Min);
52
var maxPoint = boundingBox.Transform.OfPoint(boundingBox.Max);
53
minPoints.Add(minPoint);
0 commit comments