WarningBar not showing

Hi All,

I want to show a WarnignBar in Revit 22 but it’s not showing.

Any ideas?

from pyrevit import revit,forms
doc = __revit__.ActiveUIDocument.Document

with forms.WarningBar(title='Select an object:'):

    element = revit.pick_element()

I tested your code snip in Revit 2022 and it’s working for me. It might be an issue with your pyRevit environment (which is above my head completely). An uninstall/reinstall of pyRevit to the latest version might help, if you haven’t already tried that. Sorry I can’t be more help.

same here.
try the pyrevit env command in command line and paste the results here to see how your install is being handled

this error could be the issue ?

Debug: Getting host product info for: 20220520_1515(x64)
Debug: Getting data source "C:\Users\SaSa\AppData\Roaming\pyRevit\Cache\pyrevit-hosts.json"
Debug: Getting data source "C:\Program Files\pyRevit-Master\bin\pyrevit-hosts.json"
Debug: Data source exists "C:\Program Files\pyRevit-Master\bin\pyrevit-hosts.json"
Debug: Using already loaded data. Identical signatures "1525019312" = "1525019312"
Error: Object reference not set to an instance of an object. (System.NullReferenceException)
   at pyRevitCLI.PyRevitCLIRevitCmds.<>c.<PrintLocalRevits>b__1_0(RevitProcess x)
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at pyRevitCLI.PyRevitCLIRevitCmds.PrintLocalRevits(Boolean running)
   at pyRevitCLI.PyRevitCLIAppCmds.MakeEnvReport(Boolean json)
   at pyRevitCLI.PyRevitCLI.ProcessArguments()
   at pyRevitCLI.PyRevitCLI.Main(String[] args)

it does not tell me much, is this what you got running pyrevit env command?