[Plugin Library] Win32API and Win32OLE so files

[Plugin Library] Win32API and Win32OLE so files

Postby Dan Rathbun » Sat Jan 21, 2012 9:00 pm


    Windows ONLY (Do NOT install on Mac!)


    Not a plugin. These files may be required by other plugins.

    The plugin author should list either of these files as a dependancy, if you need them:

    • Win32API.so
    • Win32OLE.so

    ( You do not need these if you have a full Ruby install, and pushed the paths to it's lib dirs into the $LOAD_PATH array.)


    Windows ONLY (Do NOT install on Mac!)


    SketchUp 2014
    • Ruby v 2.0.0 - patchlevel 247
      • win32ole.so file is included
      • Win32API.rb file is included, which is a wrapper into the newer DL library, but allows the older WIn32API style calls.
      Do not copy these files from older Ruby versions into SketchUp's "Plugins" folder, for versions 14 or higher !

    SketchUp 8.x, 2013 ( but NOT for higher versions )
    • Ruby v 1.8.6 - patchlevel 287
      • v186_p287_so.zip

    SketchUp 6.x, 7.x
    • Ruby v 1.8.0 - patchlevel 0 (initial release)
      • v180_p0_so.zip

    Windows ONLY (Do NOT install on Mac!)


    I post these because some plugins are distro'ing old versions, or some topics here at SCF have old versions.
    This can be a common place for users to get up to date versions of these files.
    4
    Last edited by Dan Rathbun on Sat Mar 01, 2014 5:02 am, edited 6 times in total.
      I'm not here much anymore. But a PM will fire email notifications.
      User avatar
      Dan Rathbun 
      PluginStore Author
      PluginStore Author
       

      Re: [Plugin Library] Win32API and Win32OLE so files

      Postby Dan Rathbun » Fri Feb 03, 2012 2:32 am

        Since someone is bound to ask, here are the online reference rdocs for these 2 libraries:

        0
          I'm not here much anymore. But a PM will fire email notifications.
          User avatar
          Dan Rathbun 
          PluginStore Author
          PluginStore Author
           

          Re: [Plugin Library] Win32API and Win32OLE so files

          Postby sumaster » Tue Apr 17, 2012 3:41 am

          Thank you very much . . . ;)
          0
          Thank you,
          SUmaster
          User avatar
          sumaster 
           

          Re: [Plugin Library] Win32API and Win32OLE so files

          Postby Dan Rathbun » Sat Dec 22, 2012 12:32 am

            Changed first line so it cannot be overlooked, to:


            Windows ONLY (Do NOT install on Mac!)


            ... and added 2 more copies of it, for a total of 3 warnings.
            0
              I'm not here much anymore. But a PM will fire email notifications.
              User avatar
              Dan Rathbun 
              PluginStore Author
              PluginStore Author
               

              Re: [Plugin Library] Win32API and Win32OLE so files

              Postby glro » Fri Nov 22, 2013 1:52 pm

              i see win32api.so is related to a specific version of sketchup

              is there a new version, available or necessary, for sketchup 2013?


              Dan Rathbun wrote:

                Windows ONLY (Do NOT install on Mac!)


                Not a plugin. These files may be required by other plugins.

                The plugin author should list either of these files as a dependancy, if you need them:

                • Win32API.so
                • Win32OLE.so

                ( You do not need these if you have a full Ruby install, and pushed the paths to it's lib dirs into the $LOAD_PATH array.)


                Windows ONLY (Do NOT install on Mac!)


                Sketchup 8.0, 8.0M1, 8.0M2
                • Ruby v 1.8.6 - patchlevel 287
                  • v186_p287_so.zip

                Sketchup 6.x, 7.x
                • Ruby v 1.8.0 - patchlevel 0 (initial release)
                  • v180_p0_so.zip

                Windows ONLY (Do NOT install on Mac!)


                I post these because some plugins are distro'ing old versions, or some topics here at SCF have old versions.
                This can be a common place for users to get up to date versions of these files.
                0

                glro 
                 

                Re: [Plugin Library] Win32API and Win32OLE so files

                Postby Dan Rathbun » Fri Nov 22, 2013 8:26 pm

                glro wrote:I see win32api.so is related to a specific version of SketchUp ...

                It is compiled with a specific version of Ruby.

                glro wrote:...is there a new version, available or necessary, for SketchUp 2013?

                At the console, check global constants:
                RUBY_VERSION
                and
                RUBY_PATCHLEVEL

                You'll see SketchUp 2013 is still the same as v8 (on the PC.)

                :idea:
                0
                  I'm not here much anymore. But a PM will fire email notifications.
                  User avatar
                  Dan Rathbun 
                  PluginStore Author
                  PluginStore Author
                   

                  Re: [Plugin Library] Win32API and Win32OLE so files

                  Postby glro » Sat Nov 23, 2013 9:59 am

                  Dan Rathbun wrote:
                  glro wrote:I see win32api.so is related to a specific version of SketchUp ...

                  It is compiled with a specific version of Ruby.

                  glro wrote:...is there a new version, available or necessary, for SketchUp 2013?

                  At the console, check global constants:
                  RUBY_VERSION
                  and
                  RUBY_PATCHLEVEL

                  You'll see SketchUp 2013 is still the same as v8 (on the PC.)

                  :idea:


                  thank you for answering

                  I was wondering about Ruby version for sketchup 2013, because win32API.so gives an error message in sketchup 13

                  require "Win32API"
                  or
                  require 'Win32API.so'
                  or
                  require 'Win32API'

                  seems not to be compatible with sketchup 2013
                  0

                  glro 
                   

                  Re: [Plugin Library] Win32API and Win32OLE so files

                  Postby Dan Rathbun » Sat Nov 23, 2013 11:54 am

                  glro wrote:seems not to be compatible with sketchup 2013

                  (1) where is the so file on your machine ?

                  (2) please post the error message
                  0
                    I'm not here much anymore. But a PM will fire email notifications.
                    User avatar
                    Dan Rathbun 
                    PluginStore Author
                    PluginStore Author
                     

                    Re: [Plugin Library] Win32API and Win32OLE so files

                    Postby swajime » Sat Nov 23, 2013 8:22 pm

                    Thank you Dan for this. I've tried starting with http://stackoverflow.com/questions/1120 ... -ms-access but I am getting an error:
                    connection = WIN32OLE.new('ADODB.Connection')
                    Error: #<NameError: (eval):27: uninitialized constant WIN32OLE>
                    Can you please help me to get started with opening a simple database myDatabase.accdb ?
                    0

                    swajime 
                     

                    Re: [Plugin Library] Win32API and Win32OLE so files

                    Postby Dan Rathbun » Sun Nov 24, 2013 8:39 am

                    swajime wrote:Error: #<NameError: (eval):27: uninitialized constant WIN32OLE>


                    Did you first have the load statement:

                    require("win32ole")

                    or require("win32ole.so")

                    Then you can test if the class was defined, via:

                    Code: Select all
                    if defined?(WIN32OLE)

                      connection = WIN32OLE.new('ADODB.Connection')

                     # more code ...

                    end


                    There is a chapter on WIN32OLE in:
                    [doc] Programming Ruby (The "Pick-Axe" Book)

                    :idea:
                    0
                    Last edited by Dan Rathbun on Sun Nov 24, 2013 11:52 pm, edited 2 times in total.
                      I'm not here much anymore. But a PM will fire email notifications.
                      User avatar
                      Dan Rathbun 
                      PluginStore Author
                      PluginStore Author
                       

                      Re: [Plugin Library] Win32API and Win32OLE so files

                      Postby Dan Rathbun » Sun Nov 24, 2013 8:41 am

                        Did you see the link ?

                        Dan Rathbun wrote:
                          Since someone is bound to ask, here are the online reference rdocs for these 2 libraries:

                          0
                          Last edited by Dan Rathbun on Sun Nov 24, 2013 11:54 pm, edited 1 time in total.
                            I'm not here much anymore. But a PM will fire email notifications.
                            User avatar
                            Dan Rathbun 
                            PluginStore Author
                            PluginStore Author
                             

                            Re: [Plugin Library] Win32API and Win32OLE so files

                            Postby swajime » Sun Nov 24, 2013 1:25 pm

                            I have this directly in the SketchUp ruby console:

                            Code: Select all
                            require 'win32ole'
                            true
                            if defined?(WIN32OLE); connection = WIN32OLE.new('ADODB.Connection'); end
                            Error: #<WIN32OLERuntimeError: (eval):27:in `initialize': unknown OLE server: `ADODB.Connection'
                                HRESULT error code:0x800401f3
                                  >

                            The link you put up did not come through.
                            0

                            swajime 
                             

                            Re: [Plugin Library] Win32API and Win32OLE so files

                            Postby Dan Rathbun » Sun Nov 24, 2013 2:23 pm

                            swajime wrote:The link you put up did not come through.

                            The original links in the 2nd post still work.
                            (It's just that the editor has decided to encode pasted URLs, suddenly.)
                            0
                              I'm not here much anymore. But a PM will fire email notifications.
                              User avatar
                              Dan Rathbun 
                              PluginStore Author
                              PluginStore Author
                               

                              Re: [Plugin Library] Win32API and Win32OLE so files

                              Postby Dan Rathbun » Sun Nov 24, 2013 2:28 pm

                              I suggest starting a new (if there is not one,) topic in the Developers Forum.
                              0
                                I'm not here much anymore. But a PM will fire email notifications.
                                User avatar
                                Dan Rathbun 
                                PluginStore Author
                                PluginStore Author
                                 

                                Re: [Plugin Library] Win32API and Win32OLE so files

                                Postby swajime » Sun Nov 24, 2013 9:01 pm

                                Thank you. I did as you said and started a new topic http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=55202%26amp;e=0.
                                0

                                swajime 
                                 

                                Re: [Plugin Library] Win32API and Win32OLE so files

                                Postby Dan Rathbun » Sun Nov 24, 2013 11:56 pm

                                Dan Rathbun wrote:There is a chapter on WIN32OLE in:
                                [doc] Programming Ruby (The "Pick-Axe" Book)

                                :idea:

                                Sysops have fixed the editor URL links (above.)

                                :enlight:
                                0
                                  I'm not here much anymore. But a PM will fire email notifications.
                                  User avatar
                                  Dan Rathbun 
                                  PluginStore Author
                                  PluginStore Author
                                   

                                  Re: [Plugin Library] Win32API and Win32OLE so files

                                  Postby glro » Mon Nov 25, 2013 9:01 am

                                  Dan Rathbun wrote:
                                  glro wrote:seems not to be compatible with sketchup 2013

                                  (1) where is the so file on your machine ?

                                  (2) please post the error message



                                  1: in the plugins folder of sketchup

                                  2:
                                  2013-11-24 13_16_57-Re_ win32API.so erreur avec sketchup 13.png
                                  0

                                  glro 
                                   

                                  Re: [Plugin Library] Win32API and Win32OLE so files

                                  Postby glro » Mon Nov 25, 2013 6:21 pm

                                  Dan Rathbun wrote:
                                  glro wrote:seems not to be compatible with sketchup 2013

                                  (1) where is the so file on your machine ?

                                  (2) please post the error message


                                  sorry

                                  problem solved

                                  you were right: win32API.so and sketchup 2013 are compatible

                                  thank you
                                  0

                                  glro 
                                   

                                  Re: [Plugin Library] Win32API and Win32OLE so files

                                  Postby Dan Rathbun » Mon Nov 25, 2013 8:30 pm

                                  glro wrote:sorry ... problem solved

                                  you were right: win32API.so and sketchup 2013 are compatible

                                  Yes I have no problem loading it.

                                  What was your issue ?
                                  0
                                    I'm not here much anymore. But a PM will fire email notifications.
                                    User avatar
                                    Dan Rathbun 
                                    PluginStore Author
                                    PluginStore Author
                                     

                                    Re: [Plugin Library] Win32API and Win32OLE so files

                                    Postby glro » Tue Nov 26, 2013 9:23 am

                                    Dan Rathbun wrote:
                                    glro wrote:sorry ... problem solved

                                    you were right: win32API.so and sketchup 2013 are compatible

                                    Yes I have no problem loading it.

                                    What was your issue ?


                                    still don't know

                                    changed something (don't know what) and the problem disappeared

                                    thank you for your comments
                                    0

                                    glro 
                                     

                                    Re: [Plugin Library] Win32API and Win32OLE so files

                                    Postby Dan Rathbun » Sat Mar 01, 2014 5:00 am

                                    :!: FYI

                                    SketchUp 2014

                                    • Ruby v 2.0.0 - patchlevel 247
                                      • win32ole.so file is included
                                      • Win32API.rb file is included, which is a wrapper into the newer DL library, but allows the older WIn32API style calls.
                                      Do not copy these files from older Ruby versions into SketchUp's "Plugins" folder,
                                      (or any of SketchUp's folders,) for versions 14 or higher !

                                    :idea:
                                    0
                                      I'm not here much anymore. But a PM will fire email notifications.
                                      User avatar
                                      Dan Rathbun 
                                      PluginStore Author
                                      PluginStore Author
                                       

                                      SketchUcation One-Liner Adverts

                                      by Ad Machine » 5 minutes ago



                                      Ad Machine 
                                      Robot
                                       



                                       

                                      Return to Plugins

                                      Who is online

                                      Users browsing this forum: Google Bot, hkh123 and 16 guests

                                      Visit our sponsors: