Script does not use selected records in SDE

Discussion created by JLuymes on Jan 3, 2012
Latest reply on Jan 5, 2012 by lpinner
I've been running scripts that edit features which have been manually selected before running the script. This has worked fine on personal geodatabases. I am now trying to implement it on the SDE database and the SDE does not use the previously selected features.

For example, if i try something like this:

c1 = gp.GetCount_management(watermain)
count1 = int(c1.GetOutput(0))
Print count1

Usually in my PGDB it would output the number of selected features. In the SDE, it just outputs the total number of features in the watermain layer.

Can anyone help?