Top |
Post New Question |
Read All |
MP2K Asks Microsoft
400
Jack Melgers
-
September 17, 2001
Is it possible to add a new point to an existing polyline? I´m now using the vertices property to get the array of locations of the polyline, then I add a point to this array and set again the vertices property with this extended array. I wonder if there is a faster or better way to add a point to a polyline. Thanks in advance for any help.
Answer:
Sorry for the delay - it took a while to verify this answer with our source.
You cannot add a new point to an existing polyline. However, if performance is your issue, you should seriously consider creating a DLL to perform the drawing work. The majority of the time needed to draw lines or plot points on the map is taken up by communication between your code and MapPoint. If this is done "in process" using a DLL (COM Add-in), you may find the performance is much faster. We know of one case (plotting many points on a map) where it reduced the time take from 2 minutes to less than 5 seconds. Definitely worth looking into.
Post New Answer / Follow-up