# Question okpy shared input

**URL:** <https://forum.orkestra.online/t/question-okpy-shared-input/190>\
**Category:** General\
**Created:** [February 17, 2025, 4:03pm UTC](https://forum.orkestra.online/t/question-okpy-shared-input/190 "2025-02-17T16:03:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MilanSabel1](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MilanSabel1](https://forum.orkestra.online/u/MilanSabel1)\
**Post date:** [February 17, 2025, 4:03pm UTC](https://forum.orkestra.online/t/question-okpy-shared-input/190/1 "2025-02-17T16:03:57Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![m.elayoubi](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.orkestra.online/m.elayoubi/32/12_2.png) [@m.elayoubi](https://forum.orkestra.online/u/m.elayoubi)\
**Post date:** [February 17, 2025, 4:38pm UTC](https://forum.orkestra.online/t/question-okpy-shared-input/190/2 "2025-02-17T16:38:37Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![m.elayoubi](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.orkestra.online/m.elayoubi/32/12_2.png) [@m.elayoubi](https://forum.orkestra.online/u/m.elayoubi)\
**Post date:** [February 22, 2025, 6:45pm UTC](https://forum.orkestra.online/t/question-okpy-shared-input/190/3 "2025-02-22T18:45:26Z")

</div>

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