Jump to content
sieu khung khiep

Problem determine PickedPoint on selected object

Recommended Posts

sieu khung khiep

Hello, I have just stepped into .Net and I am currently having difficulty determining the point I have just chosen on the Object (here is the circle)
I have read this post and I use the class DisplacementJig  to move the circle:

https://www.keanw.com/2013/12/moving-text-in-an-autocad-block-using-net-part-2.html

the problem is that when I select the circle, the point I just selected [Promptpoint.Pickedpoint ] is not on the circle. so when I move the circle I won't get to the point I want
Can you guide me further?

 

thank you very much.

Edited by sieu khung khiep

Share this post


Link to post
Share on other sites
giskumar
On 11/6/2019 at 1:27 PM, sieu khung khiep said:

the point I just selected [Promptpoint.Pickedpoint ] is not on the circle. so w

 

Picked point may not be always exactly on the selected object.

So the best way is to calculate the closest point to the selected object then use that point for movement.

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

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