Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RSA API with Python

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
guillaumeniel
2185 Views, 4 Replies

RSA API with Python

Hi,

Is it possible to use the RSA API with Python ?

 

Thanks

 

Guillaume

Tags (1)
4 REPLIES 4
Message 2 of 5

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



Rafal Gaweda
Message 3 of 5

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 ?

Message 4 of 5

Sorry , I do not know.



Rafal Gaweda
Message 5 of 5

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...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report