|
POST
|
Hi, Check the example 3 from this blog "If you are stuck at if - Part 1" to get some idea.
... View more
07-15-2013
09:27 AM
|
2
|
0
|
3928
|
|
POST
|
Hi, Read the Advanced use of model iterators section. It has to do with making the variable a model parameter and saving the model before dragging and dropping into the main model.
... View more
07-12-2013
03:17 PM
|
0
|
0
|
1255
|
|
POST
|
Hi mike.robb, Check the attachments. This model example might work for you. For this model you need to know the following: Integrating a model within a model Lists Precondition Parse path With Lists variable you can select all your CAD files from the catalog window and drag and drop them on the List type CAD dataset variable. You don't need to browse for each one separately. You can create this variable by insert> create variable> CAD dataset. Then make it a list type from its properties using the information in this link. Hope this helps. If this seems much .. Python make be a way for you. I tried this model and it worked for me. I have attached the toolbox containing three models just for reference. No data is included so the models might show the broken links.
... View more
07-05-2013
11:16 AM
|
0
|
0
|
2273
|
|
POST
|
Hi, From the screenshot this is what I understand: You have say two values in your variable called type: Value 1 and Value 2 which the user provides as it is a model parameter. This is how the iterator works: It takes the first value: value 1 and sends that value to the Select tool. This tool creates a new output based on your selection and sends it to the Collect Values. The iterator now runs for the second time for Value 2 and creates a new output. This is where I am guessing is the problem. Your output file in the Select tool does not have a unique name for each iteration so it overwrites the same file over and over again. If you need a unique name for each iteration you have to use in-line variable substitution %Type% something like this: C:\Temp\%Type%. This will ensure all the new outputs have a unique value. After this you want to merge - Please check Advanced use of model iterators You can also use %n% in the output name like this: C:\Temp\Output_%n%. This will create new outputs with names like this: Output_0, Output_1 and so on If you choose to use %Type% and the type values have spaces or any special characters in them you will need to use the Calculate Value Tool to remove the spaces before using the value as inline variable. Check Calculate value help.
... View more
07-03-2013
10:11 AM
|
0
|
0
|
2729
|
|
POST
|
Use selection tools like Select, Select Layer by attribute, Table Select, Make Feature Layer. Build a query if field1= 3 or field1=4 or field1=5 or field1= 3 and field1=4 and field1=5 Am I missing something in your question? Let me know with a screenshot of your table if that is the case.
... View more
07-02-2013
09:42 AM
|
0
|
0
|
2729
|
|
POST
|
May be this will help: For details on the expression syntax see Building an SQL Expression or SQL Reference.
... View more
07-02-2013
08:20 AM
|
0
|
0
|
2729
|
|
POST
|
Intermediate data will only apply to tools that create new output datasets. If your tools are like Add Field which only modifies the input then there is no intermediate data. Such outputs are called in-out derived data (modify input. NO new output) See if this information might help solve part of the mystery.
... View more
07-01-2013
03:40 PM
|
0
|
0
|
2811
|
|
POST
|
Hi cgraf1, You can set the output of any of your tool to be an intermediate data. Read from the link. If you mark the output as intermediate data and run the model from the model tool dialog (double click on model from catalog window) then anything marked as intermediate data will be cleaned automatically after the model runs. IF you run the model by editing the model then you have to clean the intermediate data from Model menu > Delete Intermediate data.
... View more
07-01-2013
10:40 AM
|
0
|
0
|
2811
|
|
POST
|
Hi Shiko, I am assuming you are talking about the Calculate Value tool in ModelBuilder. Key is to have a correct output data type which can be set from the the 3rd parameter on the tool dialog. If that does not work, share a screen shot of the tool dialog with your values.
... View more
07-01-2013
10:35 AM
|
0
|
0
|
910
|
|
POST
|
Hi cgraf1, Create a workspace variable and make it a model parameter. Rename to Output Location. Let the user define the output location and use the name of this variable as inline in the output paths of different tools %Output Location%. Will this work? I have to see the model to understand why %scratchworkspace% is not working for you? Have you set the workspace in model properties>environments tab? or the model is using the scratch workspace path set in your arc map document geoprocessing>environments. You can also read about using %scratchGDB% or %scratchFolder% at 10.1. May be these options work for you. Let me know.
... View more
06-26-2013
04:16 PM
|
0
|
0
|
2811
|
|
POST
|
Hi JoelK, Were you able to resolve/check if the issue was a output name length? Let me know. Share your input data to the tool if you can. This will help us check the issue more efficiently. Which version of ArcGIS are you using? sp? Thanks!
... View more
06-26-2013
04:10 PM
|
0
|
0
|
3388
|
|
POST
|
Hi bshaftel, Using iterator means iterating one raster at a time: per iteration. This single raster in each iteration goes as input to the extract multi values to point tool as a connection to the Input Rasters parameter. This Input rasters parameter takes multiple rasters at one time (it is multivalue value table) - With this in information -are you trying to run the extract multi values to point tool on each raster one at a time per iteration? or you intend to add all the rasters together to this tool? Yes, the %Name% is not working with the value list parameter of this tool at present. It is mostly a bug or a current limitation. I could find and let you know. Let me know what you want to do with the extract tool, may be there is a workaround.
... View more
06-26-2013
03:56 PM
|
0
|
0
|
3059
|
|
POST
|
Hello Daniele, Would it be possible for you to share your data or a sample of your data and the model so far? It is help see your field names and suggest a correct solution. Thanks!
... View more
12-13-2012
10:19 AM
|
0
|
0
|
2971
|
|
POST
|
Hi Matt, Please can you share your data or a sample of your data? Also, which databases are your inputs stored in?
... View more
12-13-2012
09:54 AM
|
0
|
0
|
762
|
|
POST
|
Hi, Ok I see what you are doing based on your first attachment on this forum. Explanation: I think you are trying to run this model from the model tool dialog, Correct? If yes, your layer file connected as input to the Apply Symbology from Layer tool has the value %workspace%\%Name%.lyr... Now, when you run a model from its tool dialog and have %Workspace% in any of your parameter it is going to look at for the current workspace set in the environment settings at the ArcMap level i.e. set from the Geoprocessing tab on ArcMap>environments option . The workspace set here must match the workspace you really want to point to find the layer. This means that you need a map document with a set current workspace to always accompany the model when you share your model. OR if you do not want a map document to be shared and if you decide to you a default workspace in the environments setting set at ArcMap level then this default workspace will not have the layer file you are pointing at. Now the second part %Name%.. this Name really points to a variable in the model. When you run it as a model tool this %Name% will not work. Testing: If you running the model from within a model and still see this error check these things to begin: %Workspace% which points to the workspace variable connected to your iterator is the folder that contains your layer file. Check the value of the variable Name (output of the iterator) to which the %Name% is pointing at, and make sure the value of the variable and the name of the layer in the workspace are exactly the same. If the above two points are OK then try this: Instead of the %Workspace% use the actual path to the workspace and then append %Name%.lyr in the end. If this fails try to use the exact layer file name and path and run the model for just one feature class and its corresponding layer file. Do you really need the input to Apply Symbology From Layer tool as a model parameter? [INDENT][/INDENT] If nothing works write back and share your model and a sample of your data and the layer file.
... View more
12-05-2012
03:06 PM
|
0
|
0
|
3810
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-02-2026 11:53 PM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
04-23-2026
08:54 AM
|