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.
Solved! Go to Solution.
Solved by raried. Go to Solution.
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
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: