Jump to content
Developer Wiki and Function Reference Links ×

GetClosestPt index?


Guest

Recommended Posts

Guest Mark Flamer

Can anyone explain how this index can be used? Here is a quote from the reference manual.

"For container objects, GetClosestPt has distinct behaviors. For walls, if the closest vertex is is in a subobject, obj will be set to a handle to the subobject. For symbols and plug-in objects, an index to the sub-object will be returned via parameter containedObj. "

I am trying to get to the name or handle of the sub object within a PIO that this index is pointing to. I can get the command to work, I just dont know what we can do with this index. Thanks for any input.

Link to comment
Guest Mark Flamer

I figured out that this is supossed to be the index of the closest object within the PIO. I then should be able to step through the list of subobjects in the PIO and finally get a handle to the one I want. Now I cannot get the indexing to work correctly. If there is any text in my Pio it always returns the handle of the text. If I get rid of the text It seems to return an index to the wrong subobject. I am getting frustrated! Does anyone have any experience using this command to get access to the inside of a PIO? Thanks.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...