# Calling ideas for a Revit-integrated application using pyRevit!

**URL:** <https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125>\
**Category:** Community Inspiration\
**Created:** [28 August 2023 12:25 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125 "2023-08-28T12:25:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasN](https://community.viktor.ai/user_avatar/community.viktor.ai/thomasn/32/1727_2.png) [@ThomasN](https://community.viktor.ai/u/ThomasN)\
**Post date:** [28 August 2023 12:25 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125/1 "2023-08-28T12:25:13Z")

</div>

Hi all!

I am building a proof-of-concept application in which I will use VIKTOR to automate a Revit model with some parameters.  
I could model a simple slab or wall to prove the integration works however an interesting example that combines the power of pyRevit and VIKTOR is more convincing!

Do you have any suggestions/ideas or any questions you would like me to answer/investigate?

Thank you in advance for your suggestions!

---

<div class="post-metadata">

**Author:** ![mslootweg](https://community.viktor.ai/user_avatar/community.viktor.ai/mslootweg/32/25_2.png) [@mslootweg](https://community.viktor.ai/u/mslootweg)\
**Post date:** [28 August 2023 13:24 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125/2 "2023-08-28T13:24:03Z")

</div>

@Bayo maybe you are interested in this topic?

---

<div class="post-metadata">

**Author:** ![Yien](https://community.viktor.ai/letter_avatar_proxy/v4/letter/y/ecd19e/32.png) [@Yien](https://community.viktor.ai/u/Yien)\
**Post date:** [28 August 2023 17:52 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125/3 "2023-08-28T17:52:13Z")

</div>

interresting! what kind of automation?

---

<div class="post-metadata">

**Author:** ![ThomasN](https://community.viktor.ai/user_avatar/community.viktor.ai/thomasn/32/1727_2.png) [@ThomasN](https://community.viktor.ai/u/ThomasN)\
**Post date:** [29 August 2023 12:19 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125/4 "2023-08-29T12:19:32Z")

</div>

Hi @Yien,  
Thank you for your question!  
I am trying out Revit with Python and I hope to work towards exporting floor plans as a first step and POC. The VIKTOR app would let a user upload a model, select desired plan views from the floor plan menu, be able to preview them in the app and download them using a DownloadButton.  
This should enable any colleagues to access the relevant floor plans without the need to know Revit.  
If you have any tips or things I should look out for let me know!

---

<div class="post-metadata">

**Author:** ![Bayo](https://community.viktor.ai/user_avatar/community.viktor.ai/bayo/32/1308_2.png) [@Bayo](https://community.viktor.ai/u/Bayo)\
**Post date:** [29 August 2023 13:16 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125/5 "2023-08-29T13:16:03Z")

</div>

Thanks for the shout @mslootweg  
@ThomasN, I’m wondering if Viktor can support this feature: I’d like to streamline my workflow on Viktor by transferring data directly from a Viktor app to a PyRevit extension using a JSON file. This would facilitate creating native Revit objects like floors, walls, and roofs from the JSON data, similar to how Test-fit and Autodesk Forma operate with Revit. As an example, my current Dynamo workflow allows users to automate parking layout designs. It’d be beneficial if we could effortlessly send this layout to Revit in the form of a JSON file, to be processed using a PyRevit extension. Appreciate your thoughts on this. Thanks!

---

<div class="post-metadata">

**Author:** ![ThomasN](https://community.viktor.ai/user_avatar/community.viktor.ai/thomasn/32/1727_2.png) [@ThomasN](https://community.viktor.ai/u/ThomasN)\
**Post date:** [30 August 2023 07:18 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125/6 "2023-08-30T07:18:55Z")

</div>

Hi @Bayo,  
Thank you for your input!  
From what I have been able to gather so far, you should be able to run any pyRevit script on a model or set of models in the form of a batch through the pyrevit CLI. I assume you want to have some meaning attached to the solids and this[Autodesk forum post](https://forums.autodesk.com/t5/revit-api-forum/import-json-to-revit-and-generate-3d-model/td-p/10522649) explains some options that you can possibly use in combination with a pyrevit script! If you find a way to do it let me know!  
Thanks!

---

<div class="post-metadata">

**Author:** ![Bayo](https://community.viktor.ai/user_avatar/community.viktor.ai/bayo/32/1308_2.png) [@Bayo](https://community.viktor.ai/u/Bayo)\
**Post date:** [30 August 2023 09:15 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125/7 "2023-08-30T09:15:49Z")

</div>

Hi Thomas

Thank you. I gave it some thought, and I think the best way to get this to work is to export a JSON file from the Dynamo script whenever the Viktor app user runs it. The JSON file could then be sent to the pyRevit extension (need to research how this works) or downloaded. Can I download the JSON file from Viktor or send the data to a pyRevit extension? The pyRevit extension then reads the JSON file and uses Revit’s classes to build the Revit elements.

---

<div class="post-metadata">

**Author:** ![Yien](https://community.viktor.ai/letter_avatar_proxy/v4/letter/y/ecd19e/32.png) [@Yien](https://community.viktor.ai/u/Yien)\
**Post date:** [5 September 2023 23:09 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125/8 "2023-09-05T23:09:53Z")

</div>

interresting. And could users also view Revit’s sheet? (not a pdf)

---

<div class="post-metadata">

**Author:** ![ThomasN](https://community.viktor.ai/user_avatar/community.viktor.ai/thomasn/32/1727_2.png) [@ThomasN](https://community.viktor.ai/u/ThomasN)\
**Post date:** [7 September 2023 08:51 UTC](https://community.viktor.ai/t/calling-ideas-for-a-revit-integrated-application-using-pyrevit/1125/9 "2023-09-07T08:51:48Z")

</div>

H @Yien!

If I understand your question correctly you are curious if the views in Revit can directly be seen in VIKTOR?  
If yes I do not think so. The VIKTOR worker needs to send a file and that needs to be exportable from Revit. However, as long as the file you are exporting is compatible or can be converted to something compatible with VIKTOR, you will be able to visualise that View!
