|
POST
|
There is a series of blogs on if-then-else blogs for 10 that will help you. If you are stuck at "if" �?? Part 1 If you are stuck at "if" �?? Part 2 �?? Example of using Script tool to create branches using if-else logic If you are stuck at "if" �?? Part 3 �?? Does Extension Exists model example If you are stuck at "if" �?? Part 4 �?? Does Selection Exists model example If you are stuck at "if" �?? Part 5 �?? Does Projection Exist model example
... View more
06-27-2012
03:15 PM
|
0
|
0
|
902
|
|
POST
|
Hi crazymatt, I see your attachments. Try this: Validate the entire model and save. Now try running. Do the tools run? What field are you grouping your Iteration on? What is the value in group by ID? If empty it defaults to OID or FID. Open your Get Field Value tool? Which field are you getting the value for. (Get field value only gets the first value of the field in a table). I assume it is the file path field, is it? What is the data type you are setting? I am assuming Feature Class. Right click the Get Field Value tool and click Run. Does this tool run? double click on the output and check the value? Is the value correct? Now right click the Clip tool and Run. Does the tool run? Let me know if this helps. If not, share your model and sample of your data.
... View more
06-26-2012
09:13 AM
|
0
|
0
|
762
|
|
POST
|
Hi crazymatt, You wrote: I can't figure out a way to have it return the field with the filepath and use that as the input for the clip process. Is this a field in the shapefile with features you want to use to clip? This field value is a path to ___________? what? If you are selecting a feature using feature selection iterator and want to get a field value try using the Get Field Value tool. This is a Model Only tool. You can find it from Model>Insert>Model Only>Get Field Value. This will return the field value. Then you can use the output variable of the Get Field Value tool as inline variable in the next tool (the tool you want to use the path (field value in) Can you share a snapshot of your data, table and field that you want to get the value from? Also, How do you want to use this field value?
... View more
06-25-2012
03:23 PM
|
0
|
0
|
762
|
|
POST
|
Hi MCline19, Try this: Put quotes around the x("%CompareStatus%") in the expression of the Calculate Value tool. Does that work?
... View more
06-21-2012
08:59 AM
|
0
|
0
|
1012
|
|
POST
|
Hi MCline19, Check the attached image. Hope this helps. Write back if this does not work.
... View more
06-20-2012
09:49 AM
|
1
|
0
|
1012
|
|
POST
|
Are you iterating this model? Please can you share a snapshot? Can you try using the Append tool to merge all the tables into a target dataset (yes, u will have to create a target dataset with the schema of all possible fields that your tables could contain). Read tool help.
... View more
06-15-2012
02:35 PM
|
0
|
0
|
1964
|
|
POST
|
Please can you share your feature class for us to suggest a correct solution?
... View more
06-15-2012
01:43 PM
|
0
|
0
|
585
|
|
POST
|
Try the feature Compare tool in your model. I am assuming you are using the Feature Class Iterator in your model to iterate and copy your feature classes. Use the Feature Compare tool and for the test feature class parameter (open the tool dialog. It is the second parameter) give the path to your workspace that already contains the feature classes from previous backup : some thing like this C://Backup/%Name%. This %Name% is the variable name of the output of the Iterator. As long as the feature classes you are copying and the feature classes that already exists share the same name this will work. For the first time you can just copy the feature class without worrying about copying only the feature classes that have been modified. One of the outputs of the feature compare tool is Compare status which becomes false if the feature classes you are comparing are different. You will have to set an if-then-else condition here to say if it is false run the feature class to shapefile tool, else do nothing. There is a series of blogs on if-then-else blogs that will help you. If you are stuck at "if" �?? Part 1 If you are stuck at "if" �?? Part 2 �?? Example of using Script tool to create branches using if-else logic If you are stuck at "if" �?? Part 3 �?? Does Extension Exists model example If you are stuck at "if" �?? Part 4 �?? Does Selection Exists model example For your case just using the Calculate Value tool as shown in this blog If you are stuck at "if" �?? Part 1 will suffice.
... View more
06-15-2012
01:39 PM
|
0
|
0
|
2314
|
|
POST
|
Try this: Your iterator has two outputs - 1 is the actual path to the feature class and the 2 (variable called Name in Cyan color) is the name of the feature class. Use this variable called Name as inline variable substitution in the output name of the Polygon to raster such that your output raster parameter value looks like this C:\\Temp\%Name%. Save where ever you want, only use the variable name %Name% as the output name. This will create new rasters with same name as the feature class they came from. Tip: Write the output raster to a separate file geodatabase than the incoming feature classes. Write it to a geodatabase to avoid issues with any name being longer than 13 character length.
... View more
06-14-2012
03:15 PM
|
0
|
0
|
2402
|
|
POST
|
You can use the Collect Values tool in the same model as the iterator and then this model in another model as the link shared by j.quinn shows. Or you can use the Append tool directly in the model with the iterator without the Collect Values tool. Both Append and Merge require a multivalue input, but with Append tool you are only appending the table to the target dataset and therefore you can run it as many times as the iterator runs . On each run you will only get one feature class/table being appended to the target thus eliminating the use of Clollect Value tool. Only you have to do some extra work in creating a target dataset which has the schema containing all possible fields that your feature classes could have.
... View more
06-14-2012
03:06 PM
|
0
|
0
|
2090
|
|
POST
|
Try this: Use Copy Features tool and copy the joined feature class. Now do you see all your records? Please can you give more details about your join : Are you using the Add Join tool or the Join Field tool or joining from ArcMap Table of Contents by right clicking and joining the layer and the table? Are you using the Keep All or Keep matching option?
... View more
06-14-2012
10:27 AM
|
0
|
0
|
438
|
|
POST
|
To put all the feature classes together in one feature class use the append tool in the same model as the iterator. Please can you share a snapshot or your actual model to suggest more/alternative approach?
... View more
06-14-2012
10:24 AM
|
0
|
0
|
2090
|
|
POST
|
I can't add into the table of contents any layer I want from my model only checking "Add to display". The results of geoprocessing are added automaticaly but are not displaying using LYR path set in their properties. Not sure what you are saying. Try these: You can add any input or output layer to display by checking the add to display option. If AFTER YOUR MODEL RUNS the layer does not get added to the display, in your model uncheck the add to display and check it again for it to refresh the display for the layer desired. The final output AND any other output which is a Model Parameter will be added to display by default. So if you do want to force an output to be added to display in ArcMap, make it a Model Parameter. Any feature class/ layer variable with a layer symbology set from its properties will honor the symbology if your model has run and the symbology applies to the new output. Read this help to understand the difference between checking and unchecking "All other Values" when you are creating a layer file to be used in variables. Let me know if these options don't work for you.
... View more
05-04-2012
11:37 AM
|
0
|
0
|
957
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 12-03-2025 10:47 AM | |
| 4 | 11-13-2024 11:37 AM | |
| 1 | 08-28-2023 05:43 PM | |
| 1 | 08-31-2023 02:03 PM | |
| 1 | 08-28-2023 05:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|