Unfortunately, there is no easy way to get a traversal result via python at 10.0. We addressed the issue at 10.1.To do it at 10.0, your best bet would be to create a custom GP tool. That way, you could reference it from within the same process as you execute your python script. There is documentation about custom GP tools in the SDK. If you are comfortable in geoprocessing and in .NET ArcObjects development, you will create a GP tool using the relevant parts from the traversal result add-in .NET code.
Not that add-in directly. You could take the original code (it's in the SDK) and turn it into a standalone executable then be able to call it from Python. At 10.1 we are adding this as a GP tool. So you could sign up for 10.1 beta and try it out!Jay Sandhu
Bring up the properties of the RoadLinks feature class. Then click on the Fields tab. It should show you all the fields that are present in your feature class. See if any of them are un-checked to hide them from view when you open the feature class. Most likely the ObjectID field has been turned off. if that is the case, check it on and now the values should be visible.Jay Sandhu
So you solve the CF and then run the AddIn. Once you have the Edges table, it has the OID of the streets. You can join it to that streets feature class and copy over your TOID to the edges table. Then you can Join it to your external table based on this TOID.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.