I would like to create a route line based on a point layer. The existing tool does not meet the customer requirement. But using the code snippet below, the start point and end point are always the same. It means they point to the same instance? Please help. Thanks.
rows = arcpy.SearchCursor(pntLyr, whereStr, "", "", "STOPA A") start=True for row in rows: if (start==True): start_feat=row start=False else: end_feat=row # create the line based on the start_feat.shape and end_feat.shape # Before I reassign the start_feat, start_feat and end_feat already point to the same feature now at this point start_feat=row