Jump to content
Developer Wiki and Function Reference Links ×

Getting the handle to an object by clicking on it.


Musisback

Recommended Posts

Is there a way to get the handle to an object by clicking on it?

I don't think it's clear so here is another way to explain.

I would like a function kind of like getpt() but instead of returning the coordonates a the point selected by the user, it returns an handle to the object on witch the user clicks.

I don't think a such function exists, but if you guys find a ways do do this, please tell me.

Thanks

Link to comment
  • Vectorworks, Inc Employee

There are several ways to do this.

First it to use getpt() and pass the point to GetPickObjectInfo()

If you want the user to select a certain type of object then use TrackObject(). It gives interactive highlighting as you move around the document based on your criteria.

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