Python with c#

Python with c#

Anonymous
Not applicable
1,016 Views
2 Replies
Message 1 of 3

Python with c#

Anonymous
Not applicable

I am trying to use SKlearn in python on revit, I wrote an add-in in C# that will trigger python script and get the result back to C#.  Currently, my computer has anaconda installed.  My question is, how can I deploy this to other computer without python complier.  I can't use ironpython since they don't have the required library. 

0 Likes
1,017 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Dear Taksau,

 

The Revit API is .NET based.

 

You can use anything you like as long as it talks .NET.

 

I am not aware of any other possibility to access .NET from Python except IronPython.

 

If it lacks "the required library", you can probably add it yourself if you want.

 

Long live open source.

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

tshunau
Contributor
Contributor

I just tried to install the sklearn library to IronPython. However, turns it is not possible for some reason.  I ended up using regular python with webhost library.  The API will send parameters via URL and get result from it webhost.  Then the API will process based on the result.  It works currently but it's slow.  Not sure if there's any better solution. 

 

Tak Au,    

0 Likes