Select to view content in your preferred language

How to find midpoint on lines  with vb.net of C#

2577
1
Jump to solution
04-16-2014 09:38 AM
JoseSanchez
Frequent Contributor
Hi all,

Can someone post the code to find the midpoint on a line with ArcObjects?

thanks
0 Kudos
1 Solution

Accepted Solutions
JoseSanchez
Frequent Contributor
 Set pPolyline = pFeature.Shape     Dim pMidPoint As IPoint     Set pMidPoint = New Point     'Find midpoint     pPolyline.QueryPoint 0, 0.5, True, pMidPoint

View solution in original post

0 Kudos
1 Reply
JoseSanchez
Frequent Contributor
 Set pPolyline = pFeature.Shape     Dim pMidPoint As IPoint     Set pMidPoint = New Point     'Find midpoint     pPolyline.QueryPoint 0, 0.5, True, pMidPoint
0 Kudos