Skip to content

Commit

Permalink
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/RhinoInside.Revit.GH/Types/Views/ScopeBox.cs
Original file line number Diff line number Diff line change
@@ -166,6 +166,7 @@ out Guid guid

// 2. Check if already exist
var index = doc.Groups.Find(att.Name);
if (index >= 0) guid = doc.Groups.FindIndex(index).Id;

// 3. Update if necessary
if (index < 0 || overwrite)
@@ -244,13 +245,15 @@ ClippingPlaneSurface CreateClippingPlane(Plane plane, Interval u, Interval v) =>
}
#endif
}
}

// TODO: Create a V5 Uuid out of the name
//guid = new Guid(0, 0, 0, BitConverter.GetBytes((long) index));
//idMap.Add(Id, guid);
if (index >= 0) guid = doc.Groups.FindIndex(index).Id;
}

return true;
if (guid != Guid.Empty)
{
idMap.Add(Id, guid);
return true;
}
}

return false;

0 comments on commit 7e4620f

Please sign in to comment.