Okay, here's the deal -- I haven't heard back from you and I cannot use your incomplete attachment. But what I'll do is send you back a more automated 'package'....unzip the file attachment provided (making sure all files go to the same root location you choose; it is 'relative pathed' so should still find file refs) and run the script tool (open the toolbox and double-click the script tool 'linref' inside...
It is now geared to run off of your shapefile (the one you sent, also included on the provided attachment in case yours has changed).
When the tool opens, insert the shapefile - you'll see it alongside as in the illustration provided (also attached).
Provided you have ArcGIS Desktop 10 license (Advanced), then it should run in about 20 sec (as tested on my machine) to overwrite all you see contained in the file gdb. I left the test run feature classes in the gdb...but when you run it, it should overwrite everything. No 'addmessages' statements were added to the script, so it's very plain.
Good luck - oh, one more thing, for anyone interested, to 'adapt' this for a script tool, I did nothing more than change a few lines and create a shapefile input parameter in creating a toolbox script tool within Catalog...below are the critical line changes at the beginning of the script:
import arcpy, sys, os
scriptPath = sys.argv(0)
origData = arcpy.GetParameterAsText(0)
arcpy.env.workspace = scriptPath.replace(scriptPath.split(os.sep)[-1], 'stage.gdb')
That's all! Enjoy. Make sure the errors get posted next time, if there are any.
-Wayne