<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CPython and PyRevit in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12278795#M11649</link>
    <description>&lt;P&gt;For the sake of completeness, questions related to pyRevit should be routed to&amp;nbsp;&lt;A href="https://discourse.pyrevitlabs.io/" target="_blank"&gt;https://discourse.pyrevitlabs.io/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This type of question has been formulated or answered in many different ways on the pyRevit forum&amp;nbsp;&lt;A href="https://discourse.pyrevitlabs.io/search?q=subprocess" target="_blank"&gt;https://discourse.pyrevitlabs.io/search?q=subprocess&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 07:46:14 GMT</pubDate>
    <dc:creator>jeanmarc.couffin</dc:creator>
    <dc:date>2023-10-02T07:46:14Z</dc:date>
    <item>
      <title>CPython and PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/11999761#M11641</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;first of all, this question might be repetitive. if so, please point me to the right solution.&lt;/P&gt;&lt;P&gt;Here is my question: I need to use CPython via PyRevit to have access to libraries such as numpy and pandas. At the same time, I want to take advantage of Pyrevit’s capabilities such as forms etc. As far as I understood, I can’t have both of these on a single script file. If I got this correctly, is there any way to do this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 23:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/11999761#M11641</guid>
      <dc:creator>pedramno</dc:creator>
      <dc:date>2023-05-30T23:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: CPython and PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12001000#M11642</link>
      <description>&lt;P&gt;Sounds like a sensible question to me. However, this is not the optimal place for it. This forum is for discussing the Revit API, pure and simple. You might want to check out the issues and solutions in the pyRevit repository:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/eirannejad/pyRevit" target="_blank"&gt;https://github.com/eirannejad/pyRevit&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quite a few people here in the forum also use pyRevit, though, and may be able to help. I am sure your goal can be achieved. There are many ways to disentangle and compartmentalise functionality. One important aspect to ponder is: how tightly are your Revit API bit and pieces&amp;nbsp;interwoven with your numpy and pandas bits? I should hope that they are already pretty well decoupled to start with. In that case, you can make use of numerous IPC solutions to establish the connection required:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Inter-process_communication" target="_blank"&gt;https://en.wikipedia.org/wiki/Inter-process_communication&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 10:45:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12001000#M11642</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-05-31T10:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: CPython and PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12004995#M11643</link>
      <description>Thanks very much, Jeremy. I also checked the pyRevit forum and asked the same question there. The numpy part is quite decoupled since it is meant to help me with the data exchange process from other data sources and after that point, everything would be focused on Revit APIs. I'm not pretty familiar with IPC solutions but I'll take a look at them to familiarize myself more with them.</description>
      <pubDate>Thu, 01 Jun 2023 16:52:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12004995#M11643</guid>
      <dc:creator>pedramno</dc:creator>
      <dc:date>2023-06-01T16:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: CPython and PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12011805#M11644</link>
      <description>&lt;P&gt;Dealt with the same challenge a little while back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please &lt;A href="https://github.com/eirannejad/pyRevit/issues/1731" target="_blank" rel="noopener"&gt;click here&lt;/A&gt; for a short discussion on &lt;A href="https://docs.python.org/3/library/subprocess.html" target="_blank" rel="noopener"&gt;Python subprocess&lt;/A&gt; in the Revit/pyRevit context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I am not a Revit API / Python / pyRevit expert I can report that subprocess worked well enough. Learning subprocess should be a productive use of time assuming the underlying characteristics are a good match for your application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jake&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 13:05:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12011805#M11644</guid>
      <dc:creator>RIPENG</dc:creator>
      <dc:date>2023-06-05T13:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: CPython and PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12017744#M11645</link>
      <description>&lt;P&gt;Thanks, Jake. I tried the same process, and it also worked perfectly for my case. Appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 15:11:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12017744#M11645</guid>
      <dc:creator>pedramno</dc:creator>
      <dc:date>2023-06-07T15:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: CPython and PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12017755#M11646</link>
      <description>&lt;P&gt;Thanks for giving it a go. And thanks for the feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jake&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 15:17:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12017755#M11646</guid>
      <dc:creator>RIPENG</dc:creator>
      <dc:date>2023-06-07T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: CPython and PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12158080#M11647</link>
      <description>&lt;P&gt;Hello is there a similar solution for c#? I want to solve this problem of dll hell.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 21:05:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12158080#M11647</guid>
      <dc:creator>minet.axel</dc:creator>
      <dc:date>2023-08-08T21:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: CPython and PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12159175#M11648</link>
      <description>&lt;P&gt;Almost everything that exists in Python is open source, so you can of course re-implement the same in C#. Many other solutions have also been discussed. In general, the easiest solution is to use the same DLL in all your components and avoid the problem completely. The second-simplest solution is to decouple the components from each other and use some method to communicate the relevant data between them, e.g., IPC. Here is a collection of related discussions by The Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/06/handling-third-party-library-dll-conflicts.html" target="_blank"&gt;Handling Third Party Library DLL Conflicts&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2019/04/set-floor-level-and-use-ipc-for-disentanglement.html" target="_blank"&gt;Set Floor Level and Use IPC for Disentanglement&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2021/05/revitlookup-update-fuslogvw-and-override-joins.html" target="_blank"&gt;RevitLookup Update, Fuslogvw and Override Joins&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2021/10/dll-as-resource-and-multi-version-add-ins.html" target="_blank"&gt;DLL as Resource and Multi-Version Add-Ins&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2022/02/getting-started-once-again.html" target="_blank"&gt;Getting Started Once Again&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2022/10/bim360-links-and-programming-add-ins.html" target="_blank"&gt;BIM360 Links and Programming Add-Ins&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2023/07/export-gbxml-and-python-tips.html" target="_blank"&gt;Export, gbXML and Python Tips&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 10:08:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12159175#M11648</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-08-09T10:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: CPython and PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12278795#M11649</link>
      <description>&lt;P&gt;For the sake of completeness, questions related to pyRevit should be routed to&amp;nbsp;&lt;A href="https://discourse.pyrevitlabs.io/" target="_blank"&gt;https://discourse.pyrevitlabs.io/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This type of question has been formulated or answered in many different ways on the pyRevit forum&amp;nbsp;&lt;A href="https://discourse.pyrevitlabs.io/search?q=subprocess" target="_blank"&gt;https://discourse.pyrevitlabs.io/search?q=subprocess&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 07:46:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/cpython-and-pyrevit/m-p/12278795#M11649</guid>
      <dc:creator>jeanmarc.couffin</dc:creator>
      <dc:date>2023-10-02T07:46:14Z</dc:date>
    </item>
  </channel>
</rss>

