.NET

.NET

Reply
Valued Contributor
hoathuongphuoc
Posts: 59
Registered: ‎11-05-2013
Message 1 of 6 (240 Views)
Accepted Solution

How to determine collection point on ARC or circle

240 Views, 5 Replies
02-09-2014 10:37 PM

Hi All,

I have 1 problem, hope everybody can help me. This is, I have 1 arc and now i want to get all point on this arc. 

I have attached image.

Hi,

 

An arc is a curve class derived, so you can get points on the arc with something like this:

 

dim sp,ep as double
dim dp as double= 0.1 '<--Set this var to any value in order to obtain dense or sparse points
dim ds as double
dim pcoll as new pointcollection3d
sp=MyArc.StartParam
ep=MyArc.EndParam
ds=sp
Do While ds <= ep
pcoll.add(Myarc.GetPointAtParam(ds)
ds=ds+dp
Loop

 

Gaston Nunez

Mentor
mzakiralam
Posts: 231
Registered: ‎11-09-2012
Message 2 of 6 (212 Views)

Re: How to determine collection point on ARC or circle

02-10-2014 01:27 AM in reply to: hoathuongphuoc
HI,
Usually an arc consists of 3 points. Start, Center and End point. But from your picture it seems like that there is more than 3 points. can you clarify more regarding your problem?
Valued Contributor
hoathuongphuoc
Posts: 59
Registered: ‎11-05-2013
Message 3 of 6 (207 Views)

Re: How to determine collection point on ARC or circle

02-10-2014 02:58 AM in reply to: mzakiralam

Yes, i can get 3 point(start,point,middle) but if i want to get any more point in arc. How can i do that. thanks for your help.

Distinguished Mentor
gasty1001
Posts: 582
Registered: ‎04-11-2010
Message 4 of 6 (189 Views)

Re: How to determine collection point on ARC or circle

02-10-2014 07:30 AM in reply to: hoathuongphuoc

Hi,

 

An arc is a curve class derived, so you can get points on the arc with something like this:

 

dim sp,ep as double
dim dp as double= 0.1 '<--Set this var to any value in order to obtain dense or sparse points
dim ds as double
dim pcoll as new pointcollection3d

sp=MyArc.StartParam
ep=MyArc.EndParam
ds=sp

Do While ds <= ep
 pcoll.add(Myarc.GetPointAtParam(ds)
 ds=ds+dp
Loop

 

Gaston Nunez

Active Contributor
absStructural
Posts: 37
Registered: ‎07-15-2010
Message 5 of 6 (183 Views)

Re: How to determine collection point on ARC or circle

02-10-2014 08:20 AM in reply to: hoathuongphuoc

Additionally, you could use GetPointAtDist(double distance) - depending on your exact needs.

Valued Contributor
hoathuongphuoc
Posts: 59
Registered: ‎11-05-2013
Message 6 of 6 (166 Views)

Re: How to determine collection point on ARC or circle

02-10-2014 06:16 PM in reply to: absStructural

thanks so much

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.