Get points from circle/arc circumference

Get points from circle/arc circumference

andriamparany.ralambomahay
Contributor Contributor
509 Views
4 Replies
Message 1 of 5

Get points from circle/arc circumference

andriamparany.ralambomahay
Contributor
Contributor

Hello,

 

I would like to get the points which on the circumference of circle or arc. 

The same points that autocad shows when we select circle or arc.

 

Capture.PNG

 

Is there a command or another API to do that or I have to compute it ?

 

Thanks for any tips.

 

0 Likes
Accepted solutions (1)
510 Views
4 Replies
Replies (4)
Message 2 of 5

Ed__Jobe
Mentor
Mentor

You might want to explain better what you are trying to do. VBA can set osnaps and running osnaps, but it doesn't have much to calculate points. You have to do the math yourself. NET has a lot more functions for getting points on curves.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 5

andriamparany.ralambomahay
Contributor
Contributor

I would like to extract the center, and 4 points on each circle on a file. This data will be the entry point for another non autocad dependent app.

0 Likes
Message 4 of 5

Ed__Jobe
Mentor
Mentor

VBA can give you the Center point and then you can just use math to calculate the quadrants by adding or subtracting the radius from x or y.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 5 of 5

andriamparany.ralambomahay
Contributor
Contributor
Accepted solution

I have found a solution here 

https://forums.autodesk.com/t5/vba/create-point-on-a-3d-circle/m-p/7706298#M101152 

I have missed the usage of TranslatedCoordinates.

 

0 Likes