From: Michael Mueller Date: 2003-03-07T23:35:53+09:00 Subject: WIN32OLE: Passing an Array Dear Rubyists! I'm trying to automate AutoCad 2002 via Win32OLE - since trying that kind of stuff with excel seemed to be quite easy I went on to try it with the next app :o) Unfortunately I ran into problems after just 2 Minutes... The following snippet of code works however: require 'win32ole' --- acad = WIN32OLE.new("autocad.application") doc = acad.ActiveDocument ms = doc.ModelSpace puts " #{acad.name}, Version #{acad.version} " --- When I'm trying to draw a line using: --- koor1 = [1,1] koor2 = [10,10] ms.AddLine(koor1,koor2) --- my program crashes with a segmentation fault. I guess the problem lies in the arrays being passed to the method. I searched the web/usenet for any hints on how to pass an array to an ole object but found absolutely nothing. Any hints? Michael P.S.: I'm quite sure that the Autocad-related stuff is right since i copied from a book about Autocad-VBA-programing