Skip to content

Commit 7cd6199

Browse files
Fix ambiguous reference and missing using in RibbonUtils.cs
- Resolved ambiguity for RibbonButton by using full namespace. - Added System.Collections.Generic for List support. Co-authored-by: chuongmep <31106432+chuongmep@users.noreply.github.com>
1 parent 819d90e commit 7cd6199

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AddInManager/Model/RibbonUtils.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Collections.Generic;
12
using System.Diagnostics;
23
using System.Reflection;
34
using Autodesk.Revit.UI;
@@ -29,7 +30,7 @@ public static void RemovePanels(string assemblyPath)
2930
bool shouldRemove = false;
3031
foreach (var item in panel.Source.Items)
3132
{
32-
if (item is RibbonButton button)
33+
if (item is Autodesk.Windows.RibbonButton button)
3334
{
3435
// Heuristic check: check button ID, text, or tooltips for the assembly name
3536
if (button.Id != null && (button.Id.Contains(assemblyName) || button.Id.Contains(assemblyPath)))

0 commit comments

Comments
 (0)