InsertCursor: copy polyline geometry

Discussion created by deleted-user-VeZur_n9o0OZ on Jul 5, 2011
Latest reply on Jul 5, 2011 by dkwiens
Hi All,

I have written a script to update a point feature class using an insertcursor. The data I am recieving contains a lookup code, which I use to search a reference feature class. I am currently returning the X and Y values from my reference data to give me the point geometry for the new feature.

However, I now need to extend the script to work with polyline data. So it's no longer a simple case of looking up the corresponding X and Y. My question is:

How can I search a polyline feature class, and use the geometry of the returned feature to insert a new record in another featureclass?

Thanks for your help,