Question okpy shared input

Hi,
I’m a new (Revit API) programmer, and I’m trying to create a few tools with Okpy.
Is it possible to store a value in a variable in the editor/main script and then access this variable in the GUI script?

For example:

  • Filter all the doors in the main script.
  • Access the filtered door list in the GUI code of a DropDown Input.

I noticed there was a webpage about this in the Okpy documentation (https://docs.orkestra.online/okpy/inputs/sharing-inputs), but it doesn’t contain any information.

A barebones example of how this can be done would be greatly appreciated.

Thanks in advance,
Milan Sabel

1 Like

Hi there @MilanSabel1 !
Welcome to the forum .

This is awesome ! I really think OkPy is a great way to get started with the Revit API and building effective and shareable tools.

Just to make sure I understand your use case well, you want to have a dropdown that contains a filtered list of doors is that right ? In that case, wouldn’t having the code that gets the filtered list of doors directly in the input enough ? Or is there something else that needs to be taken into account ?

Hey there ! Just checking in on this topic. Let us know !