|
POST
|
Just a clue: Lets tackle this two part problem one at a time : You entering address and the model splitting the address into 1/2/3/4 parts and adding them to a field The model remembering a part of the old address and asking you if you want to add another on the same street. Try this: Create a model Create a string variable. Rename this "Address". Make it a Model Parameter. This one will let you enter the address from the model tool dialog and you wont have to open the model each time. Now add Calculate value tool. Rename the output of the Calculate Value tool to "HouseNumber" Pass "Address" as inline variable substitution in the expression ("%Address%") (Click on link and read help and check the attached image) Now use Python method (.split) to split the string and get each item of the list. (check attached image). Now Add Field and Calculate Field. In Calculate Field use the output of the Calculate field tool as inline variable (%HouseNumber%) in the Expression parameter. Add a precondition from the output of Calculate Value tool to the Add Field tool. Repeat adding and calculating for other parts of the string address by changing the value returned [0]/[1]/[2] Use this process in in tools based on your workflow.
... View more
08-17-2011
02:16 PM
|
0
|
0
|
2032
|
|
POST
|
Check If-then-else part 1 and If-then-else part 2 Any ModelBuilder questions belong in the Geoprocessing forum.
... View more
08-10-2011
10:01 AM
|
0
|
0
|
606
|
|
POST
|
Check this blog for considerations when exporting a model to a Python script.
... View more
08-09-2011
03:50 PM
|
0
|
0
|
866
|
|
POST
|
Try running your script tool with all the input values once and save the model. Now connect the output of the script tool to the next tool. Make sure that the feature type that your script tool is creating is an accepted as a valid input type for the next tool. Remove all the previously added input values from your script tool parameters to make the tool a generic tool once again.
... View more
08-04-2011
03:30 PM
|
0
|
0
|
2290
|
|
POST
|
Hello abowron, Hello jeremyjurick, Can any one of you please share a subset of your data? This would make it easy for us to find the problem and suggest a solution. Thanks!
... View more
08-02-2011
08:42 AM
|
0
|
0
|
4123
|
|
POST
|
Hello All, Our developers are looking into the joined fields with Null values problem. We will inform you in a day or two.
... View more
08-01-2011
04:32 PM
|
0
|
0
|
4121
|
|
POST
|
This is what you can try: Use the iterator and connect the output feature class (green oval) as input to Make Feature Layer tool. Use Make feature layer tool to make a selection based on your sql query. Connect the output to the Get Count tool. Get Count tool (see help on this tool) - if there are any selected features the output of get count tool is 1 and the tool connected to it downstream will run. if no features are selected, and the count is 0, the output of get count will be 0 and the downstream will not run. Copy features in the end with output of make feature layer tool as input to the tool and output of the get count as the precondition to the tool. Hope this works for you.
... View more
07-28-2011
11:08 AM
|
0
|
0
|
3726
|
|
POST
|
Try the attached script tool to add custom message in ModelBuilder.
... View more
07-01-2011
10:58 AM
|
0
|
0
|
2175
|
|
POST
|
Have you created a model for your workflow? Can you share it? If not the toolbox an image? For the second selection in Select Layer By Location what selection type are you using? New Selection/Subset Selection...?
... View more
06-16-2010
03:26 PM
|
0
|
0
|
660
|
|
POST
|
You layer should retain the calculated value as the calculate field only modifies the input and does not create a new output. But I do not know what going on. Try this: You can use the Copy tool in the end or after the Calculate Field tool. Connect your input feature classes (blue oval you are making the selection on) not the selected features in a layer and set a precondition on this copy tool to only run after the calculate field has been run.
... View more
06-08-2010
04:25 PM
|
0
|
0
|
2609
|
|
POST
|
1) Edit your model. Go to Model-->Model Properties-->Environments tab-->General and set the curreent workspace environment and the scratch workspace environment there. Hit OK Now use current workspace as %workspace% and scratch workspace as %scratchworkspace% in your input and output path respectively. 0r 2) Right click anywhere in your model and from the side menu click Create Variable. Create a variable of type workspace. You can rename the variable to anything say: Input Workspace. Provide the variable a workspace value and use it in other tools as %Input Workspace%. **Its always recommended that you set the environments at the ArcMap/application level if all your models are using the same workspace. ---------------------------------------- Iterate though a list of workspaces or the feature classes and tables inside the workspaces? What do you want to do by iterating over workspaces?
... View more
06-04-2010
02:36 PM
|
0
|
0
|
3195
|
|
POST
|
In the ModelBuilder doc editor the general information: Abstract, keywords, author and constraints remain internal and can be viewed by opening the doc editor for the model. The remaining info: summary, illustrations, usage tips.... can be previewed and checked from the help page. To see the help page right click the model and click Help.
... View more
05-12-2010
02:19 PM
|
0
|
0
|
905
|
|
POST
|
If you are working with 9.3 or 9.3.1 try using the variable of type list or series. List of inputs will all run together and create a list of individual outputs. The individual outputs will have to use %i% in the output name as in-line variable substitution. Download this example and read help: http://resources.esri.com/geoprocessing/index.cfm?fa=codeGalleryDetails&scriptID=15728 Read how to use lists, series and inline variable substitution: http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Iteration_using_Lists http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Iteration_using_Series http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=In-line_variable_substitution Hope it helps.
... View more
05-12-2010
02:14 PM
|
0
|
0
|
1678
|
| 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 |
4 weeks ago
|