RSA API with Python

RSA API with Python

Anonymous
Not applicable
2,927 Views
4 Replies
Message 1 of 5

RSA API with Python

Anonymous
Not applicable

Hi,

Is it possible to use the RSA API with Python ?

 

Thanks

 

Guillaume

0 Likes
Accepted solutions (1)
2,928 Views
4 Replies
Replies (4)
Message 2 of 5

Rafal.Gaweda
Autodesk Support
Autodesk Support

Most likely yes (Python supports COM as far as I can see from google).



Rafal Gaweda
0 Likes
Message 3 of 5

Anonymous
Not applicable

I tried to import robotOM library with Python, but it looks like the library file as to be a .py file, not a .dll file. Does such a file already exist ? If not, how can I convert the Interop.RobotOM.dll file to a .py file ?

0 Likes
Message 4 of 5

Rafal.Gaweda
Autodesk Support
Autodesk Support

Sorry , I do not know.



Rafal Gaweda
0 Likes
Message 5 of 5

Anonymous
Not applicable
Accepted solution

I found the syntax to import and use the API with Python :

 

import clr
clr.AddReferenceToFileAndPath("C:\...\Interop.RobotOM.dll")
import RobotOM as rbt

 

Then you can call RSA classes as follow : 

Robot = rbt.RobotApplication

etc...

 

It may be usefull for Grasshopper users...

0 Likes