[Ironruby-core] [AutoCAD and IronRuby]
lists at ruby-forum.com
Tue Mar 29 20:48:02 EDT 2011
I was successful in getting Excel to talk to AutoCAD. I had to revert
back to IronRuby 0.9.1 b/c IronRuby 1+, so far has been kicked out of
Autocad saying that .NET is too new.
Here is what I used:
SharpDevelop 4.0 (b/c I'm new to visual studio)
(AutoCAD Specific) -find these files in C:\Program
Files\Autodesk\AutoCAD 2011 or wherever your program is located at.
IronRuby Libraries -find in Ironruby\bin
AL.cs - C# bridge (build project and type 'netload' in AutoCAD to load
resulting .dll file)
xl_2_acad.rb - after you have successfully load ironruby type 'RBLOAD' @
AutoCAD command prompt and select this file
xl_2_acad.xlsx - must be at location 'C:\xl_2_acad.xlsx' to work or
change ruby script
I have attached the code and excel files that I used. (the ruby code is
literally thrown together) Let me know if your were successful. I will
continue to try and get IronRuby 1+ to work and even possibly the
'win32ole' library since I am used to scripting excel with it instead of
the .net methods. Also I will try and get David's helper methods up and
Posted via http://www.ruby-forum.com/.
More information about the Ironruby-core