Jump to content

Problem determine PickedPoint on selected object


Recommended Posts

Posted (edited)

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

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...