POST
|
Thank you for getting back to me so quickly. I will try out your advice to see which method suits me better (String vs SQL expression). Thx!
... View more
12-18-2012
07:16 AM
|
0
|
0
|
1725
|
POST
|
You can ignore the previous message. I just got the model running following your instructions (i.e. prompting the user to add the desired value for feature selection and the desired name for the output file). Thanks again for your help
... View more
12-18-2012
01:55 AM
|
0
|
0
|
1725
|
POST
|
Thank you for your prompt reply. I tried to follow your instructions but in the end, when i pressed "Run entire model" i was never prompted to choose the value for the Where Clause expression, nor for the name of the output shapefile. I have attached an image of the design of the model i built. I made a XY event layer (input_data_layer) from the original table "input_data.txt". Then i inserted the "Select" tool. I linked the event layer with the tool (as Input features). I opened the tool, clicked the SQL button and i wrote a valid expression [this is how it looks like (FieldName = 'value')], i copied the expression and i clicked on cancel to exit the SQL. I inserted a new variable of the type "String". I opened the variable and pasted the aforementioned expression. I linked the variable to the tool (as Expression). I set both this variable and the output file as model parameters. I ran the entire model but it created only one output file based on the value of the expression i had created. I was never prompted to choose among the available values in the layer, nor to give a name to the output. I repeated the steps above and instead of specifying a particular value in the SQL expression i left it blank [(FieldName = '')] and reran the model. Then i got an error warning that no selection was made.. Any ideas of what i might be doing wrong? Thanks in advance
... View more
12-17-2012
10:59 PM
|
0
|
0
|
1725
|
POST
|
Hi, i would like to create an automated process which will import a text file in ArcMap, convert it to event layer, then select different rows at a time given the value of a field defined as group parameter and export these rows in a different shapefile. Until now i have figured out how to import the text file and make an event layer for it, but i am stuck with the iteration for attribute selection. It would also be great if the user could be given the option to choose which rows to be selected (i.e. the value of the group field) each time they run the model, instead of creating shapefiles for every subset. Is it also possible to name the final shapefile after the value selected for the group field in an automated way? Or if not, is it possible to give the user this opportunity (i.e. by clicking Run Entire Model, a window appears asking them to enter first the value of the group field and then the name of the output shapefile)? Thanks in advance for your help!
... View more
12-16-2012
02:39 AM
|
0
|
5
|
5296
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|