sketchucation logo sketchucation
    • Login
    1. Home
    2. robertokl
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Weird behavior with EntitiesObserver

      Hi Guys,

      Thanks for the replies.

      I wanted to do the way I described, cause that way the user could use any tool available to him. But, as it turns out, this seems undoable. I ended up creating my own line tool that would do what I wanted.

      posted in Developers' Forum
      R
      robertokl
    • Weird behavior with EntitiesObserver

      Hi guys,

      I need to do a plugin that will be used to outline windows and doors in a matched photo. The idea is that the user click a button before starting the outlining, draw some rectangles and when he is finished, he clicks in the button again.

      It looks like a simple thing to do: When the user clicks the button for the first time, I add an EntitiesObserver and add all "onElementsAdded" to an array. When he clicks the button again, I loop through the array and do what I have to do (in my case, simply putting this entities in the deserved layer).

      The plugin works as expected when I create rectangles within a surface. The problem is when one of the edges of the rectangle touches one of the edges of a previous modeled object. Sketchup triggers the element added with the face of the previous modeled object.

      I know it maybe hard to understand the problem, but I'm leaving instructions on how to reproduce in the end of the post.

      I wonder if you guys have any ideas on what I could do.

      Thanks!

      To reproduce the error:

      1. Put the "bug.rb" file (uploaded here) in the plugin directory;
      2. Create a simple box;
      3. Click on plugin -> Start outlining window;
      4. Within a face of the box, draw a square, without touching any of the edges of the box;
      5. Click again on plugin -> Start outlining window;
      6. Take a look in the layers (activating the "Color by layer" helps a lot). The new square should be in the "Window" layer;
      7. Now, on another face of the box, redo step 3 to 5, but this time draw a rectangle and the bottom of the rectangle being drawn should touch the bottom of the box;
      8. Check the layers again, and the box's face should have gone to the window layer, while the window is in the main layer (sometimes it works though @_@);

      bug.rb

      posted in Developers' Forum
      R
      robertokl
    • 1 / 1