sketchucation logo sketchucation
    • Login
    1. Home
    2. wikii
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    W
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 33
    • Posts 151
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Sketucation plugin load error

      Thank you!

      I use the patch,but there is still different.

      when sketchup install in drive c,and start with shortcut in desktop

      Encoding.find("locale")
      #<Encoding;GBK>
      

      when sketchup install in drive c,puts the patch file in tools folder,then start sketchup with shortcut in desktop

      Encoding.find("locale")
      #<Encoding;ASCII-8BIT>
      
      

      This different causes some error if filename uesed some Chinese character.

      Does the patch file still miss something?

      posted in Plugins
      W
      wikii
    • RE: Problem about ruby searching path in sketchup

      @dan rathbun said:

      I've already written a patch, and TIG has updated it twice.

      See: Re: Sketucation plugin load error

      Thank you!

      I use the patch,but there is still different.

      when sketchup install in drive c,and start with shortcut in desktop

      Encoding.find("locale")
      #<Encoding;GBK>
      

      when sketchup install in drive c,puts the patch file in tools folder,then start sketchup with shortcut in desktop

      Encoding.find("locale")
      #<Encoding;ASCII-8BIT>
      
      

      This different will lead some error if filename uesed some Chinese character.

      The patch file is still missing something?

      posted in Developers' Forum
      W
      wikii
    • RE: Problem about ruby searching path in sketchup

      @tt_su said:

      This is a bug in SU2014 M0 where the load paths will be incorrect if you launch SketchUp via a shortcut or SKP file that is on a drive different from where SketchUp is installed.

      There should be a fix in the next release.

      Until then the workaround is to launch SketchUp via a shortcut on the same drive SketchUp is installed to.

      I want to write a patch in ruby to solve the problem.
      I put path.rb in Sketchup tools folder.

      path.rb

      drive=$;.clone.delete_if{|x| !(x=~/Tools$/)}[0][0]
         path=$;.clone
         $;.clean
         path.each{|x|
            if x=~Regexp.new("C;/SketchUp 2014/Tools/RubyStdLib") or x=~Regexp.new("C;/SketchUp 2014/Tools/RubyStdLib/platform_specific")
                $;.push x.gsub(/^C/,drive)
            else
               $;.push x
            end
         }
      
      

      But it seems too late.
      But it seems Sketchup has missed launching something before loading "path.rb".

      posted in Developers' Forum
      W
      wikii
    • RE: Problem about ruby searching path in sketchup

      @tt_su said:

      This is a bug in SU2014 M0 where the load paths will be incorrect if you launch SketchUp via a shortcut or SKP file that is on a drive different from where SketchUp is installed.

      There should be a fix in the next release.

      Until then the workaround is to launch SketchUp via a shortcut on the same drive SketchUp is installed to.

      Thank you!
      Wish next release come soon.

      wikii

      posted in Developers' Forum
      W
      wikii
    • Problem about ruby searching path in sketchup

      When I install Sketchup in folder on other drive like d:/sketchup2014.
      I found the searching path is wrong.

      $:
      ["C:/SketchUp 2014/Tools/RubyStdLib", "C:/SketchUp 2014/Tools/RubyStdLib/platform_specific", "D:/SketchUp 2014/Tools", "C:/Users/wikii/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins"]

      "RubyStdLib" and "platform_specific" direct to 😄

      And Encoding.aliases return very few
      Encoding.aliases
      {"locale"=>"ASCII-8BIT", "external"=>"UTF-8", "filesystem"=>"ASCII-8BIT"}

      that leads lots of error like
      Encoding::Converter.new("GBK", "UTF-8")
      Error: #<Encoding::ConverterNotFoundError: code converter not found (GBK to UTF-8)>

      that is so depressed!

      any way?

      wikii

      posted in Developers' Forum
      W
      wikii
    • SketchUp Bridge can't work in Sketchup2014

      I used Sketchup Bridge for a very long time,Thanks TBD!

      But I foung it can't work in Sketchup 2014.

      posted in Developers' Forum
      W
      wikii
    • RE: Question about "puts" "Kernel.puts" "Kernel::puts"

      Thank you.
      regard.

      posted in Developers' Forum
      W
      wikii
    • Question about "puts" "Kernel.puts" "Kernel::puts"

      where are the differences bewteen puts , Kernel.puts ,Kernel::puts?

      posted in Developers' Forum
      W
      wikii
    • RE: How to unload a .so file?

      @dan rathbun said:

      @wikii said:

      @dan rathbun said:

      How are you doing on the so file version situation ??

      I ask the author of the plugin.He told me that plugin use degist.so from 1.8.

      Well they need to update the plugin, as SketchUp 8 on Win32 uses Ruby v1.8.6-p287 ...

      Thank you!
      He told me he will.

      posted in Developers' Forum
      W
      wikii
    • RE: How to unload a .so file?

      @dan rathbun said:

      How are you doing on the so file version situation ??

      I ask the author of the plugin.He told me that plugin use degist.so from 1.8.

      posted in Developers' Forum
      W
      wikii
    • RE: How to unload a .so file?

      I found that one plugin uses digest.so from ruby 1.8 , another uses digest.so from ruby 1.86.

      posted in Developers' Forum
      W
      wikii
    • RE: How to unload a .so file?

      @dan rathbun said:

      @wikii said:

      Is there a way to unload a loaded *.so file?

      Not really as it's not written in Ruby. It's written in C.

      The solution is to control the Ruby enviroment you are running, so:

      Where and what Ruby version is your so files getting loaded from ??

      What ruby version are you running ??
      In the Ruby Console type:
      RUBY_VERSION
      and
      RUBY_PATCHLEVEL

      What platform are you running on?
      What SketchUp edition, version and MR are you using ??
      (Your forum user info is not displaying this info. Please go to the forum User Control Panel, and enter this info. It will help us help you better, and the forum's cleanup routine will not flag you as needing to be deleted.)

      Thank you!

      RUBY_VERSION
      1.8.6
      RUBY_PATCHLEVEL
      287

      My platform is win7 64bit.Sketchup version is 8.0.14364.
      And I modified my info in control panel.

      I need more help about unload a .so file.
      Thank you!

      posted in Developers' Forum
      W
      wikii
    • RE: How to unload a .so file?

      @dan rathbun said:

      Sounds like your plugin wants to use digest.so

      Yes.
      Is there a way to unload a loaded *.so file?

      posted in Developers' Forum
      W
      wikii
    • Sketchup context menu items turn gray

      Some times ,my context menu items turn gray.
      Such as,when I select a group ,right click it,but the context menu item "explode" turns to gray.

      posted in SketchUp Bug Reporting sketchup
      W
      wikii
    • RE: How to unload a .so file?

      @dan rathbun said:

      Please explain WHY you think you need to do this ??

      How will you determine what VERSION of Win32API has been loaded ?? (There is no version information within it's C source or it's resulting Ruby class.)

      I run a plugin,return "Error: #<RuntimeError: Incompatible digest API version>".
      I think maybe a deffirent version of digest API has been loaded.So I want to unload it.

      posted in Developers' Forum
      W
      wikii
    • RE: How to unload a .so file?

      @dan rathbun said:

      You want to do this on just YOUR machine, or on other people's machines who have your plugin ?

      Just on my own machine.

      posted in Developers' Forum
      W
      wikii
    • How to unload a .so file?

      I want to unload a win32api.so,then load an other version of win32api.so.
      How can do it.

      Thanks!

      wikii

      posted in Developers' Forum
      W
      wikii
    • RE: [Plugin] FollowMe and keep (v0.04 update 20090210)

      @sir.swaffel said:

      I like this tool, but it is lacking a basic feature that 1001bit's version does have: a reference point.

      FollowMeAndKeep automatically uses the center of the face that it wants to extrude as the reference point for the path. When using a more complex face that needs to be extruded along a path relative to let's say the bottom left corner, you're out of luck 😕

      Reference point?
      select a cpoint ,curve and face,then run fak.
      the cpoint will be treat as reference poing.
      try it.

      wikii

      posted in Plugins
      W
      wikii
    • RE: Question about menu.add_item

      I see.

      Thank you,Tig!

      posted in Developers' Forum
      W
      wikii
    • RE: Question about menu.add_item

      @tig said:

      @wikii said:

      @tig said:

      WikiiI see what you me - buggy...
      However it WILL work when scripted...

      I hope it works in different scripts, means that two scripts can add items to a same submenu.

      It does work in different scripts, if you use a $ variable - I already use it like that...

      I test these two file.
      Only 1.rb work well,2.rb can't add item into the submenu.


      load the first


      then this one

      posted in Developers' Forum
      W
      wikii
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 3 / 8