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 Perl

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
raried
335 Views, 3 Replies

RSA API with Perl

Hi,

 

I am trying to import the robotom.tlb to Perl (scripting language). http://www.perl.org/

 

I have written several Perl scripts for my current project and currently exchanging data via csv files...

 

Perl supports COM through Perl module

Win32::OLE

 http://search.cpan.org/~jdb/Win32-OLE-0.1711/lib/Win32/OLE.pm

 

I'm encouraged by this post

http://forums.autodesk.com/t5/Robot-Structural-Analysis/RSA-API-with-Python/m-p/3763075#M10203

 

Once I can access this then it appears to be easy to edit VBA syntax to Perl syntax so I can do the automation I'm trying to do in Robot.

 

Any suggestions would be much appreciated.

3 REPLIES 3
Message 2 of 4
raried
in reply to: raried

Solved

Message 3 of 4
raried
in reply to: raried

I've managed to break this, which I think is because I uninstalled Robot 2011 - which I did to try to get my Excel VB code working with the API (which it did).

 

The following is a line in my Perl code

 

use Win32::OLE::Const 'Robot Object Model ver 14'; 

 I never got this to work but from what I've read this is what I should use. I did get this to work however

 

use Win32::OLE::Const 'Robot Object Model'; 

 But I guess this was finding a 2011 version of robotom.tlb in the registry.

 

I've tried copying the robotom.tlb file into various Perl lib folders, thinking that Perl may find it there.

 

I've also tried directing Perl directly to the tlb file (something I've read elsewhere) but I think this would only work for library files that don't need to be registered.

 

use Win32::OLE::Const "C:/Program Files/Autodesk/Autodesk Robot Structural Analysis Professional 2014/System/Exe/robotom.tlb";

 I also have Robot 2013 installed.

 

I notice that I can't get Robot 2014 Spreadsheets Calculator to work due to it not being able to make a COM object. And same goes for the 2013 version of these spreadsheets.

 

Interestingly enough my VB code can connect to Robot (2014) API.

 

I am going to ask my IT department to reinstall Robot 2014, hopefully this will do something.

 

Any other suggestions very welcome. Thanks, Rob

 

 

 

 

Message 4 of 4
Rafal.Gaweda
in reply to: raried


 

I notice that I can't get Robot 2014 Spreadsheets Calculator to work due to it not being able to make a COM object. And same goes for the 2013 version of these spreadsheets.

 

Try this:

http://forums.autodesk.com/t5/Robot-Structural-Analysis/Project-Octopus-seamlessly-access-Robot-data...

 



Rafal Gaweda

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

Post to forums  

Autodesk Design & Make Report