I have a model I built in ArcMap. I exported it to a python script and made some changes. Can I import this python script back into model builder?
seems to clear memory now but still get this error..
The type of out_event_properties does not match the type of in_features.
Jake, well I was rooting for your Eagles last night, cant stand Carolina.. I entered that line of code but still get this attached error.
Try adding the following line to your python script. You will to add this after the 'import arcpy' line.
arcpy.env.overwriteOutput = 1
This will allow the script to overwrite output if it already exists.
My first try I created a Python toolbox and received the same error message..
Jake,
When I add the script to the model and run it, it gives the following error.. What I don't understand is that when I run the model before exporting it to the python script it does not hang on the LocateFeaturesAlongRoute. Is there a different syntax in python for this? The input is a line and a table and the output is a point.. Here is the error I get.. Its not even getting to the code that I made changes to..
Hi Terry,
Yes, this is possible:
Integrating scripts within a model—Help | ArcGIS for Desktop
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.