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

    Posts

    Recent Best Controversial
    • RE: Upgrading plugins to Ruby 2.0 for SketchUp 2014

      Win32API.so seems to no longer works on SU2014, instead we should use build in Win32API.rb.

      When passing
      Sketchup.active_model.skpdoc
      pointer,
      I've got error:

      Error: #<TypeError: no implicit conversion of Fixnum into String>
      C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/Win32API.rb:23:in pack' C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/Win32API.rb:23:in block in call'
      C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/Win32API.rb:22:in each' C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/Win32API.rb:22:in each_with_index'
      C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/Win32API.rb:22:in call' C:/Users/l/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/BrighterSU/BrighterSU.rb:68:in mydll_render'
      C:/Users/l/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/BrighterSU/BrighterSU.rb:248:in block in InitToolbar' -e:1:in call'

      funciton definition:
      BRrender = Win32API.new(mydll,"RenderScene",["P","P","I","I","I"],"I")

      function call:
      BRrender.call(Sketchup.active_model.skpdoc,Sketchup.active_model.path,width.to_i,height.to_i,nFromSett.to_i)

      Is it because of SU 64bit version?
      Does anyone have similar problem or anyone succeed to pass
      Sketchup.active_model.skpdoc pointer into c++ dll with SU2014?

      posted in Developers' Forum
      B
      Brighter3D
    • RE: Brighter3D Update 1.08

      Not bad, but I would place this table in some environment...


      ver 1.10, 106 seconds

      posted in Extensions & Applications Discussions
      B
      Brighter3D
    • Cleanup on SketchUp close problem

      Hi all,
      I am calling function from ruby that creates modal fltk window from c++ plugin dll (which is not true modal in Sketchup),
      and I am making SketchUp window its parent.
      Window is shown as long as user close it by close/apply button (or esc key).

      When SketchUp closes, I would like to clearly close that window.

      I added onQuit() function from Sketchup::AppObserver that calls code to close the window.
      It works, but the problem is after close it returns value to the original ruby function call,
      and it seems not longer exist at this moment.

      it locks on ntdll.dll!KiFastSystemCallRet()
      And Sketchup does not close.

      Does any of you had similar problem?
      Maybe it is possible to create true modal window with Sketchup as a parent window?

      If I use exit(0) at the end it closes, but it is not very clean solution...

      posted in Developers' Forum
      B
      Brighter3D
    • 1 / 1