Is there any way to make intersection of two lines tool with extending lines option, so the result would be a point. the hardest part is when the lines have to be extended to intersect.

the tool will intersect int the cases described in the picture below.

this operation is a common CAD operation but i haven't found a tool or a snippet to do it in Arcobjects or Arcgis Engine 10.1.

Any help please.

enter image description here

  • 1
    An illustration of what you want would be helpful.
    – R.K.
    Commented Apr 9, 2013 at 10:01

5 Answers 5


Have a look at the ConstructIntersection method on the IConstructMultipoint interface. It constructs the points of intersection between two segments with options for extending the segments in order to locate additional points.


Have you looked at the Extend Line tool?


This tool extends line segments to the first intersecting feature within a specified distance. If no intersecting feature is within the specified distance, the line segment will not be extended. Tool use is intended for quality control tasks such as cleaning up topology errors in features that were digitized without having set proper snapping environments.

Without a specified distance, lines will extend until an intersecting feature is found. A combination of that with Intersect seems like a possibility, especially because it allows extending to extensions as well as existing segments (both of which you illustrated above)

  • the extend tool is very good, but according to to my experience with it, sometimes it do not extend for no reason, sometime it is extended to the opposite direction of the feature.
    – geogeek
    Commented Apr 9, 2013 at 14:13

In Autocad Map 3d these are called drawing cleanup tools.
esri will do these types of actions on topology. You would need to create geodatabase topology of your feature class/classes and then show the topology toolbar. Then you can display the topology errors, and see any violations of the "must not have dangles" rule
This topic applies to ArcGIS for Desktop Standard and ArcGIS for Desktop Advanced only.
If you don't like this route.
I would import the data into Map3d run the clean tools and export back to esri.

  • Excellent use of topology rules
    – geogeek
    Commented Apr 9, 2013 at 14:32

You want to create the "intersecting point" in an edit session manually (by clicking with your mouse - not as a batch task for all features)?

Then use the Intersection tool from the Feature Construction toolbar:

enter image description here

  • thanks, but i forgot to tell that i want to program the intersection.
    – geogeek
    Commented Apr 9, 2013 at 14:48

the IRay.QueryFirstIntersection Method seems to be the solution. the first line could be the Ray and second line could the argument to intersect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.