Setting Active Data Frame

Discussion created by belowzero8 on Jan 3, 2011
Latest reply on Jan 25, 2011 by jbarrette-esristaff
I am writing several python scripts for a map automation and export tool.  One of the functions of the tool is to take csv files from a provided path and Make a XY Event layers.  The problem is that I have several data frames and I want to distribute the XY Event layers properly among those data frames.

I have searched the resource center and I have not found anything about activating a specific data frame using python script.  Is there a way to do that?  Or can I tell arcpy.MakeXYEventLayer_management to put the event layer in a specific data frame?

I would appreciate any ideas on the matter.  Thanks!