|
POST
|
try the attached script tool. You can modify the script tool if you require. + since you are using the iterator (which runs multiple times) and the Union tool (which should run just one time) you will have to created a nested model/model within a model. See attached tbx.
... View more
05-03-2012
03:09 PM
|
0
|
0
|
1653
|
|
POST
|
Ok I understand your point. At present there is no way to create a value list variable in the model and connect it to the Union tool. Python script is the way to go. I created a script tool, but before I share I need to know - if you will use the Rank field for any of your input feature classes? If not I can share the simple script tool else I would have to modify it to include the ranks.
... View more
05-03-2012
01:54 PM
|
0
|
0
|
1653
|
|
POST
|
You are correct. Union has the parameter of data type Value Table and the output of Collect Values is a Multiple Values. Share a snap shot/or your data to suggest a workaround. Will Merge or Append not work for your case?
... View more
05-01-2012
01:00 PM
|
0
|
0
|
1653
|
|
POST
|
Use Make Table View tool instead of Make Feature Layer.
... View more
04-27-2012
08:54 AM
|
0
|
0
|
3694
|
|
POST
|
It could be a bad install. Uninstall and reinstall ArcGIS. Do a complete install and not a custom one.
... View more
04-25-2012
02:06 PM
|
0
|
0
|
1084
|
|
POST
|
Right click the outputs (green ovals) of your tool which create the intermediate shapefiles and make sure the Intermediate option is checked. If you are running the model from within ModelBuilder you have to manually delete the intermediate data (Model drop down menu and click Delete Intermediate Data) If you are running from the model tool dialog it will get deleted with the Intermediate checked. Refresh your catalog to see.
... View more
04-24-2012
03:52 PM
|
0
|
0
|
503
|
|
POST
|
Try this: Create a string variable in the model and rename it to Location. Make it a model parameter. Set a value list filter on this variable (read help) The value list will have two values - 1) Greenland 2) Antarctica Rename your feature class to have the same spelling/name as these entries in the value list. Value list is the way a user would choose a location. Now use the variable name in the input path to your tool like this - C:\Temp\%Location% This inline variable substitution is the way the user selected value will be used in your tools to select the input.
... View more
04-23-2012
02:01 PM
|
0
|
0
|
774
|
|
POST
|
Hi brenth, Please can you share your model or a snapshot of your model so see what you are doing? You are trying to connect the output of which tool to the delete tool?
... View more
04-20-2012
11:14 AM
|
0
|
0
|
1485
|
|
POST
|
You can put in some if-then-else logic in your model using either the Calculate Value tool or a script tool. Check this series of blogs: 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 Create a dummy feature class in the place where your feature class could exists or not (location) such the your feature class exists. Run the model once based on this blog If you are stuck at "if" �?? Part 1. This blog has an example for your case. Once your model validates and runs for your dummy feature class. You can save the model and run it from its tool dialog. You will have to experiment a little with your model as I do not really know besides the delete what are the other tools in your model.
... View more
04-20-2012
08:35 AM
|
0
|
0
|
1485
|
|
POST
|
Hi Anand, Check the attachment. You don't need to convert the raster to Poly and do all that stuff. Try something like what is shown in the attached image: here is the code Expression: (here your Input is the Input Raster variable name - The variable name can be x/y/anything while its value is the path to your raster - read Calculate Value help) fn(r"%Input%") Code Block def fn(input): import arcpy myRaster = arcpy.Raster(input) ext = myRaster.extent midx = (ext.XMax - ext.XMin) / 2 midy = (ext.YMax - ext.YMin) / 2 return "{0} {1}".format(midx,midy)
... View more
04-18-2012
02:59 PM
|
0
|
0
|
1963
|
|
POST
|
Ok. I see the you are iterating over tif. Try this: Create a precondition from output of the Parse Path tool to the "Slice to Equal Area 8 classes" tool. such that Parse path tool run before the Slice tool.
... View more
04-17-2012
08:22 AM
|
0
|
0
|
3200
|
|
POST
|
You do not need to use the Parse Path tool. The cyan color output oval from the iterator called Name is the name of the input raster. Just use %Name% in your downstream tool output.
... View more
04-16-2012
02:38 PM
|
0
|
0
|
3200
|
|
POST
|
Dear wjtrask, Couple of things to check and try: Share your model or a snap shot of your model. How are you running the model? By editing a model and running from within ModelBuilder? From its tool dialog? If you are running from tool dialog - Make sure that your outputs are not intermediate (especially the one on which your inline variable substitution depends) Right click your green ovals and uncheck the intermediate such that they are not deleted after the model runs. Experiment with this. You can always check it intermediate if you do not need them after you run the model and also after you make sure that downstream tools are not dependent on any of the outputs marked as intermediate Try these at 10.0: Do not use a list variable INSTEAD Put all your shapefiles in one place and use the Iterate Feature Class Iterator. This iterator has two outputs 1) the feature class path which you can connect to the Clip tool downstream, 2) Name- which is the name of the feature class. Use this variable name in your output as %Name%. or If you are using Multivalue Iterator use the Parse Path tool and set the second parameter of that tool to Name. Use the output of Parse path as inline in your downstream tools. Set precondition from Parse path to the next tool Clip.
... View more
04-16-2012
02:27 PM
|
0
|
0
|
2891
|
|
POST
|
Hi Taniapf, I am sorry you are facing this problem with a model diagram not drawing properly. To troubleshoot I need some information from you: What is the os of the original machine? What is the os of the machines that do not work? What does the model look like on the original machine? What is the version of ArcGIS on the original machine? What is the version of ArcGIS on the machines that have the problem? Was there any problem with ArcGIS install on the machine showing the problem? Can you share the model?
... View more
04-13-2012
10:20 AM
|
0
|
0
|
1372
|
| 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
|