.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

from a point3dcollection to draw a 3d polyline

2 REPLIES 2
Reply
Message 1 of 3
dancalgary
833 Views, 2 Replies

from a point3dcollection to draw a 3d polyline

I want to create a command:

My selection set consists of dbpoints that exists on my drawing and they are more or less in line

I create a new point3dcollection with this db points

I want to create a 3d polyline based on this point3d collection

My problem is : how to sort this point3d collection based on a picked start point and picked end point?

The only ideea I have is:

from start point i calculate the distance to each point3d from collection and based on the results i sort the point3d collection based on distances

Can somebody have an input on this?

 

Thanks

2 REPLIES 2
Message 2 of 3
adadnet
in reply to: dancalgary

hi

 

just stumbled over kean's blog on sorting a pointcollection:

 

http://through-the-interface.typepad.com/through_the_interface/2011/01/sorting-an-autocad-point2dcol...

 

he's using the x-xoordinate as criteria but in the comments below there are references to expand on, more like the problem you state, and a step further in his follow up blog.

 

hope you'll find this useful.

Message 3 of 3

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost