PickHelper does not pick elements outside active context

PickHelper does not pick elements outside active context

Postby fredo6 » Fri Aug 29, 2014 8:45 pm

If the current context is a group or component, I found out that PickHelper does not 'pick' entities outside the active context.

In contrast, InputPoint does seems to pick outside current context as well as Raytest.

Since it is easy to detect in which context you are, it should be possible to build an alternate method of picking for PickHelper when the current context is not the top model. But that's going to be cumbersome because both InputPoint and RayTest have limitations.

Note that the Sketchup behavior for the native Sketchup tools is to pick entities and inference about the entities outside the current context. The tooltip is even showing "outside Active".

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: PickHelper does not pick elements outside active context

Postby cesaro36 » Thu Mar 02, 2017 1:26 am

Hi Fredo
Did you find a way to "pick" entities outside the active context?
0

cesaro36 
Premium Member
Premium Member
 

Re: PickHelper does not pick elements outside active context

Postby thomthom » Thu Mar 02, 2017 4:56 pm

Yes, this is a reflection of the behaviour of SketchUp's tools. Pickhelper is used for selection and you cannot select outside the active context. Inputpoint on the other hand do let you snap to things outside the active content. And raypick is just a generic utility.

What are you trying to do that require picking entities outside the active context?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: PickHelper does not pick elements outside active context

Postby cesaro36 » Fri Mar 03, 2017 9:05 am

Thanks for picking up the question ThomThom
I'm developing a measuring tool and part of the functionality lies on the capability of the tool to make a quick measurement no matter what context you are into.

Currently I'm getting the information via pickpoint but I'm having hard time trying to get rid of the interferencing and also confuses me a lot when the cursor is over a face but one or more edges are just behind that face because my draw method to highlight either the face or the edge goes crazy when underneath the cursor are to much geometry happening. I wanted to implement a method using pickhelper but the not picking outside active context thing stopped me.


The tool angleinspector from fredo marvelously does exactly what I want to achieve and I'm trying to mimic that functionality but without success.

viewtopic.php?f=180&t=67058
Here you can see a gif describing my problem.


Saludos
0

cesaro36 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: prayooth and 5 guests

Visit our sponsors: