<?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: IronPython in Revit API C# Plugin in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/ironpython-in-revit-api-c-plugin/m-p/8404174#M46345</link>
    <description>&lt;P&gt;You could try the built in Sharp Macro Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has not only C#, but also Python, Ruby, and Visual Basic.&amp;nbsp; And you can add references to libraries under the "Project" - "Add Reference" menu.&amp;nbsp; I assume that will add the required libraries to the compiled code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Duplicating your code from one computer to another&amp;nbsp;might require a little more work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 14:20:49 GMT</pubDate>
    <dc:creator>stever66</dc:creator>
    <dc:date>2018-11-15T14:20:49Z</dc:date>
    <item>
      <title>IronPython in Revit API C# Plugin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/ironpython-in-revit-api-c-plugin/m-p/8399939#M46343</link>
      <description>&lt;P&gt;Is it possible to compile a Revit add-in&amp;nbsp;with Python code for a user that does not have an install of Python using IronPython or alike?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a Revit plugin written in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;C#&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I'd like to do data processing and machine learning, which seems best to be done in Python because of readily available packages such as Gensim, Tensorflow, FuzzyWuzzy, Pandas, etc. I don't want to assume or ask the end user to install Python to run my&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;plugin,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;but would still like to use those Python packages. I got IronPython working on my machine with a Python install, but cannot run the same script on a machine without a Python install. Please let me know if any clarification would help.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 21:57:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/ironpython-in-revit-api-c-plugin/m-p/8399939#M46343</guid>
      <dc:creator>evan.dinelli</dc:creator>
      <dc:date>2018-11-13T21:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: IronPython in Revit API C# Plugin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/ironpython-in-revit-api-c-plugin/m-p/8400488#M46344</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Evan,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You will probably have to do some research on this yourself in other, non-Revit related forums.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I searched the Internet for "does ironpython require python installation" and found a lot of promising answers that turn up a surprising number of alternative approaches:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://duckduckgo.com/?q=does+ironpython+require+python+installation" target="_blank"&gt;https://duckduckgo.com/?q=does+ironpython+require+python+installation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Portable Python provides a possibility to install Python without really installing Python:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://stackoverflow.com/questions/7997794/how-to-run-a-python-program-on-a-windows-server-without-having-python-installed" target="_blank"&gt;https://stackoverflow.com/questions/7997794/how-to-run-a-python-program-on-a-windows-server-without-having-python-installed&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This note in the IronPython documentation seems to indicate that IronPython itself does not require a Python installation:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://ironpython-test.readthedocs.io/en/latest/faq/installed.html" target="_blank"&gt;https://ironpython-test.readthedocs.io/en/latest/faq/installed.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you just want to run your IronPython script on different machines without installing much, it is easy to distribute an IronPython app:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://stackoverflow.com/questions/18880490/can-ironpython-run-on-machine-that-it-does-not-installed-on" target="_blank"&gt;https://stackoverflow.com/questions/18880490/can-ironpython-run-on-machine-that-it-does-not-installed-on&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps and look forward to hearing how you end up solving this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 06:38:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/ironpython-in-revit-api-c-plugin/m-p/8400488#M46344</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-11-14T06:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: IronPython in Revit API C# Plugin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/ironpython-in-revit-api-c-plugin/m-p/8404174#M46345</link>
      <description>&lt;P&gt;You could try the built in Sharp Macro Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has not only C#, but also Python, Ruby, and Visual Basic.&amp;nbsp; And you can add references to libraries under the "Project" - "Add Reference" menu.&amp;nbsp; I assume that will add the required libraries to the compiled code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Duplicating your code from one computer to another&amp;nbsp;might require a little more work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 14:20:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/ironpython-in-revit-api-c-plugin/m-p/8404174#M46345</guid>
      <dc:creator>stever66</dc:creator>
      <dc:date>2018-11-15T14:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: IronPython in Revit API C# Plugin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/ironpython-in-revit-api-c-plugin/m-p/8420229#M46346</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be careful with IronPython, because it may not be compatible with the libraries you are mentioning. I had that problem in the past. That also apply to python nodes in Dynamo and python macros in Revit&lt;/P&gt;
&lt;P&gt;For simple applications, the approach I follow is: I use Ironpython embedded in a .net Windows application to gather the input data and I pickle the info into a file. Then I have another&amp;nbsp; python app (either Python 2 or 3 depending on the case) that unpickles the data and performs the calculation, displays results, etc. If neccessary, I can pickle the results and unpickle them again in IronPython for processing inside the ,NET appilication, although I have not played too much with it.&lt;/P&gt;
&lt;P&gt;Lastly, I use py2exe to encapsulate this python app and all the python related libraries into an exectutable file that can be included in the .net installation program. That eliminates the need for having the python installation and all the required packages in the clients' computers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Juan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 09:51:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/ironpython-in-revit-api-c-plugin/m-p/8420229#M46346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-23T09:51:25Z</dc:date>
    </item>
  </channel>
</rss>

