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.
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.
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: