UI - WPF and XAML

Hello,

We are currently evaluating OkPy to determine whether the solution meets our needs before considering a subscription. Our main challenge at this stage is the migration of our existing pyRevit scripts. As part of these migration tests, I am working on one of our scripts and need to know whether it is possible to reproduce the same user interfaces we previously built in pyRevit, particularly our custom dialog boxes, in order to maintain our workflow structure and current user experience. Could you confirm whether OkPy supports WPF and XAML files for UI development, or if an equivalent alternative exists within its ecosystem?

Hey there @LF_BIM !

Welcome to the forum :slight_smile:

OkPy doesn’t use XAML files directly, but it can absolutely reproduce the same user interfaces you have in pyRevit, and the OkPy Agent makes it a lot easier.

Here’s how you can try it right now with the free daily agent prompts (no subscription needed):

  1. Open OkPy in Revit, create a new tool (pick C# for wpf UIs), and click the Agent panel (top right)
  2. Attach your pyRevit files ( .py, .xaml, .cs files)
  3. Tell the agent something like “Convert this into an OkPy tool”
  4. The agent will read your files, understand the logic and UI, and build an equivalent OkPy tool automatically

For the UI specifically, OkPy offers:

  • Built-in inputs (dropdowns, textboxes, checkboxes, datagrids, etc.) , it covers most typical pyRevit dialogs
  • Custom WPF windows in C# for more complex dialogs, the agent builds full custom windows programmatically with buttons, forms, layouts, theming, etc.
  • Web apps for rich interactive UIs (dashboards, reports)

The agent picks the best approach based on your original UI complexity.

What’s truely wonderful is that all off this happens within Revit, there’s no setup needed. And once you have your OkPy tools, Orkestra makes the deployment and management a breeze.
You get several free agent messages per day, so you can test a conversion on one of your scripts and see if the result matches your needs before deciding on a subscription. I’d actually be very interested in knowing how it goes for you ! :slight_smile: