• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

PickHelper does not pick elements outside active context

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 3 Posters 916 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    fredo6
    last edited by 29 Aug 2014, 19:45

    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

    1 Reply Last reply Reply Quote 0
    • C Offline
      cesaro36
      last edited by 2 Mar 2017, 00:26

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

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 2 Mar 2017, 15:56

        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?

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • C Offline
          cesaro36
          last edited by 3 Mar 2017, 08:05

          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.

          http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=67058
          Here you can see a gif describing my problem.

          Saludos

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement