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

    Squall290586

    @Squall290586

    10
    Reputation
    1
    Profile views
    13
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Squall290586 Unfollow Follow
    registered-users

    Latest posts made by Squall290586

    • RE: Sketchup crash when i use thread

      @thomthom said:

      It's something many people have tried to find a solution for - some uses timers to slice up the work, but each tiny slice still blocks SketchUp UI so it does affect performance. And the task itself will take longer time.

      I think the only proper solution is to make a Ruby C Extension and use C to create a native thread. But I don't think you can access the SketchUp model from a separate thread so it'd only work if you where doing calculations or other operations that doesn't need interaction with the model.

      Damn, my treatment change the model.
      I have really no possibility to not freeze the UI.

      Actually my code make this but if i click on a web dialog, sketchup crash.
      You know how read a sketchup dump file, may be the cause of my problem is in this file.

      Thanks in advance.

      posted in Developers' Forum
      S
      Squall290586
    • RE: Sketchup crash when i use thread

      @chris fullmer said:

      Because it isn't designed to work that way. Splat.

      Hi,

      How i can make a process which not freeze the UI?
      My process can take a very long time.

      But if not use thread, the UI freeze.

      Have you any solution to solve my problem?
      I search on the forum but i don't found a solution.

      Thanks in advance.

      posted in Developers' Forum
      S
      Squall290586
    • RE: Sketchup crash when i use thread

      @thomthom said:

      Basically, threads under SketchUp Ruby is a no-go. They still block SketchUp from being responsive.

      I noticed that, that's why i create a web dialog with a javascript setTimeout which call a method Thread.join() with a parameter in order to run my thread.
      But sometimes, i don't know for what sketchup crash.

      And i don't understand why.

      posted in Developers' Forum
      S
      Squall290586
    • RE: Sketchup crash when i use thread

      @thomthom said:

      Ruby threads? They will not work under SketchUp. (search the forum and you see lots of topics detailing all the issues.) Ruby threads, in Ruby 1.8 which SketchUp uses isn't real threads.

      Hi,

      I search on the forum.
      But i don't find result about thread.
      Have you any link on thread using under sketchup?

      Thanks in advance.
      πŸ˜„

      posted in Developers' Forum
      S
      Squall290586
    • Sketchup crash when i use thread

      Hi,

      I excuse me in advance for my bad english πŸ˜„.

      I develop a GCODE plugin for sktchup.
      I use threads in order to not freeze the UI on my treatment.

      But sometimes, sketchup crash and make a dump file.
      How i can read this file in order to find the cause of my problem.

      Thanks in advance.

      Best regards.

      posted in Developers' Forum
      S
      Squall290586
    • RE: Plugin to create a progress bar

      Hi,

      A new version of my progress bar is available (Version 1.1).
      After severals tests, I modify the generation of the web page using jQuery JS framework.

      And now, a processing management is available to execute the processes one by one.

      posted in Plugins
      S
      Squall290586
    • RE: Plugin to create a progress bar

      @thomthom said:

      @squall290586 said:

      I change the module sketchup with a new method it's not an existant method.
      It's very important?

      I recommend you read this: http://www.thomthom.net/thoughts/2012/01/golden-rules-of-sketchup-plugin-development/

      Thanks for this link, I will to read that carefully πŸ˜„.

      posted in Plugins
      S
      Squall290586
    • RE: Plugin to create a progress bar

      @aerilius said:

      Hi,
      we usually use an author module and then a module name of our choice ( Utils is a very generic word). Like

      module Squall
      >   module Utils
      >   end
      > end
      

      Indeed, i change all my class and i prefixe all that by the module Squall.

      posted in Plugins
      S
      Squall290586
    • RE: Plugin to create a progress bar

      I change the plugin, i create a new module with a new method.
      The link is be updated (version 1.02)

      posted in Plugins
      S
      Squall290586
    • RE: Plugin to create a progress bar

      @jim said:

      Hello Voignier. Welcome to the forum and thank you for contributing to our community.

      Every SketchUp plugin must share the same work space, which means plugins must not change the environment for other plugins. This means not using global variables, enclosing your code in a namespace, and not changing SketchUp's classes or modules.

      Doing any of these will get the plugin banned from this forum. Thanks.

      
      > require 'sketchup.rb'
      > 
      > module Sketchup
      >   def Sketchup.application_dir()
      >     Dir.chdir(Sketchup.template_dir)
      >     Dir.chdir("../../..")
      >     return Dir.getwd
      >   end
      > end
      > 
      

      Hi,

      I change the module sketchup with a new method it's not an existant method.
      It's very important?

      If yes, i will changed my plugin immediatelly.

      posted in Plugins
      S
      Squall290586