POST
|
Thank you all, I have broken the model down to the small pieces and have gotten the better result. I am also trying to transform the model to python now, "cross your fingers for me"!
... View more
04-13-2016
05:23 PM
|
0
|
1
|
615
|
POST
|
The accuracy is important, however it is really helpful if I will be able to run a batch of models inside a full model. I don't have access to the model now, so I cannot share it here, but I can give examples of the issues. I have a sub-model which selects all lines(lets say streams) inside a polygon(a county). My task is to select all streams outside the county. in the first step, the sub-model selects all the streams(by using select by attribute) then in next step, it removes streams within a county from selection (by using select by location). The sub-model selects (15 out of 70 streams), but by running that in the full model, all 70 streams appears in my output, or sometimes a sub-model selects some features, but when the full model is run, non of those features appears in my output. I don't get any error while the full model is running. Thanks for your help.
... View more
04-10-2016
05:50 PM
|
0
|
2
|
615
|
POST
|
Hi Dan, Thanks for your response. This model has 7 Parameters, these sub-models do different queries(spatial join, select by locations and select by attributes), and selected features are supposed to be joined in a single output. I am running this at once to save a time. I have set the environment to "in-memory" to avoid breaking path when I send it out to other people.
... View more
04-10-2016
04:01 PM
|
0
|
1
|
615
|
POST
|
How I can improve my ModelBuilder to get more precise and accurate output? I have a main model which contains about 20 sub-models, and when I run it, it doesn't give me output of some sub-models. individual sub-models run perfectly, the issue occurs when I run a batch of them in the main model.
... View more
04-09-2016
10:07 AM
|
0
|
9
|
4124
|
POST
|
Rebecca, As you, Darren and Wes suggested, I will replace all "O_4" with "O", I will also make feature layers from my source files, hopefully these suggestion solve the issue. Since I am new in python I prefer to use ModelBuilder for doing "iterate" and "join" tasks. I have similar scripts to this one (about 20 scripts) which select some records in attribute table and their output are supposed to be join together In ModelBuilder.
... View more
04-03-2016
07:26 PM
|
0
|
0
|
652
|
POST
|
Yes that is a whole script. In this script, some features are supposed to be selected by "select by attribute" and select by location" then their two attribute table fields are supposed to be populated by"warning" and "error" values. I will implant this and some other scripts (about 20-30) with similar functions in a model builder and the model builder will join output of all those scripts.
... View more
04-03-2016
07:10 PM
|
0
|
0
|
652
|
POST
|
Thats right! I am overwriting second "select by attribute" one by Calculate field , but should I keep it as a Parameter and variable (O_4) ?
... View more
04-01-2016
04:16 PM
|
0
|
2
|
652
|
POST
|
Hi everyone, I am new in python and have just started to write some simple scripts similar to the following one: # Import arcpy module import arcpy, os, sys #Parameters L= arcpy.GetParameterAsText(0) O= arcpy.GetParameterAsText(1) O_4= arcpy.GetParameterAsText(2) #Variables O_4= O #Select by location arcpy.SelectLayerByLocation_management(O, "WITHIN", L,"", "NEW_SELECTION", "") #Select by Attribute arcpy.SelectLayerByAttribute_management(O_4, "SWITCH_SELECTION", "") #calculate field arcpy.CalculateField_management(O, "Feild2", '"Warning"', "VB") #calculate field arcpy.CalculateField_management(O_4, "Field2", '"ERROR"', "VB") When I attempt to join those scripts outputs (by using "Join" tool) in ModelBuilder; I get this error: <<Error:000229: Cannot pen \\psf\Home\Documents\Default.gdb\finaloutput ; Failed to execute (Merge)>> I have also set my parameters as following: Display Name Data Type Type Direction L Feature Layer Required input O Feature Layer Required input O_4 Table Required output Do you have any solution for that?
... View more
04-01-2016
03:36 PM
|
0
|
6
|
5152
|
POST
|
Thank you for the rsponse Darren, I have changed the Python script and it is working now. It seems my standalone variable caused that issue.
... View more
01-26-2016
09:50 AM
|
0
|
0
|
463
|
POST
|
Thanks for your response Dan, I tried to rewrite the model and avoid of creating any standalone variable, and it is working now.
... View more
01-26-2016
09:45 AM
|
0
|
0
|
463
|
POST
|
I have one feature Layer and two standalone variable (String Type) in my model Builder. Those stand alone variables are being used two inputs to get a name and a number and add them to the name of the output tableI. I can run the model without any issue, but when I convert it to Python, I keep getting the following errors: ExecuteError: Failed to execute. Parameters are not valid. ERROR 000814: Invalid file type I set my Parameter as they are in my Model builder, but cannot find out the reason that this issue pups up all the time. I would appreciate if you have any solution for it. Thanks, Fery
... View more
01-05-2016
12:57 PM
|
0
|
4
|
2825
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|