From: Masaki Suketa Date: 2005-12-03T08:14:47+09:00 Subject: Re: win32ole: Passing an Array to Autocad Sorry for being too late to reply. In message "Re: win32ole: Passing an Array to Autocad" on 05/11/11, "Michael Mueller" writes: > > Could you show me the result of the following script? > > > > m = @model.ole_method_help('AddText') > > puts m.name > > puts " dispid:" > > puts " #{m.dispid}" > > puts " args:" > > m.params.each do |p| > > puts " #{p.ole_type} #{p.name}" > > end > > Sure, the output is: > ---------------- > AddText > dispid: > 1572 > args: > BSTR TextString > VARIANT InsertionPoint > R8 Height > ---------------- Could you try _invoke method? @model._invoke(1572, ["test", [0.0,0.0,0.0], 10], [WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_R8]) or @model._invoke(1572, ["test", [0.0,0.0,0.0], 10], [WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_VARIANT, WIN32OLE::VARIANT::VT_R8]) Regards, Masaki Suketa