programatically use the extend tool in ArcMap

Discussion created by Bradberry on Jul 13, 2010
Latest reply on Jul 14, 2010 by Bradberry

I have some transect lines (polylines) going over a polygon.  These lines can overrun or stop short of the polygon boundaries. I would like to snap them to the polygon boundaries.  I can get it to work using the advanced editing tool for extend and trim, but I need to do this programatically. 

Does anybody know how to make these tool work programatically?  I tried calling the command, but since you need a mouse click to get it to work in ArcMap, I couldn't figure out how to get it to function.

Thanks, Chris