From: Masaki Suketa Date: 2008-09-12T06:44:48+09:00 Subject: Re: WIN32OLE Question on Accessing an Enum Hello, Bryan Richardson wrote: > > HRESULT IApplicationGE::SetCameraParams([in] double lat, > [in] double lon, > [in] double alt, > [in] AltitudeModeGE altMode, > [in] double range, > [in] double tilt, > [in] double azimuth, > [in] double speed ) > > How do I go about creating the AltitudeModeGE enum to pass into the > setCameraParams method? If TypeLibrary information created when installing Google Earth application, you could get some information from following Ruby script. appge = WIN32OLE.new('GoogleEarth.ApplicationGE') appge.ole_method('SetCameraParams').params.each do |param| puts param.ole_type_detail.join(',') + ' ' + param.name end What is the result of above script? Regards, Masaki Suketa