Tag Info

New answers tagged

1

You should continue using the model properties > workspace settings; but change both, current and scratch workspace to R.gdb. Note the following paragraphs from arcmap help: Scratchworkspace: Tools that honor the Scratch Workspace environment setting use the specified location as the default workspace for output datasets. The Scratch Workspace is ...


1

Hornbydd is correct. There's an out of the box tool to do this called data driven pages. Data driven pages is based on the old school DS Map Book. It gives you the ability to make a map book series and strip maps. There's a handy cartography tool box with a tool for building a polygon index grid over data (like your lines), this in turn can be used in data ...


1

Attached below is a modification of your code that works. Shortly, the problem was the use of outputs names, as follows: # Local variables: Output_Feature_Class = Input_Table Output_Feature_Class__2_ = Output_Feature_Class Output_Feature_Class__3_ = Output_Feature_Class__2_ Output_Feature_Class__4_ = Output_Feature_Class__3_ Output_Feature_Class__5_ = ...


0

Looking at your python version, it appears you are not setting the length of the text fields when you add them, you must do this, it is not optional for a text field. This would explain why the assign default would fail.


2

Model builder, to my knowledge, does not expose the data driven pages functionality that you access on the toolbar. If you want to automate map output with data driven pages then you must use python and arcpy. Search help for DataDrivenPages (arcpy.mapping). From this page there is also a link to building map books.


0

You have to customize script tool behavior. Take a look at Customizing script tool behavior. But beware, it can be quite frustrating until you get it to work correctly.


0

My understanding is that a ModelBuilder model can only be run from start to finish without interruption. Consequently, as commented by @dof1985, I think your only option is to create two models/tools that you run before and after your user operation.


5

Do you need parentheses around part of the expression? Either of the following could be correct, but I assume it is the latter. (PopDenZone = 'CPSE URBAN' AND Priority_Description = 'Life Threat') OR Priority_Description = 'Urgent Medical' PopDenZone = 'CPSE URBAN' AND (Priority_Description = 'Life Threat' OR Priority_Description = 'Urgent Medical')


3

Perhaps try parentheses around the expressions. I think what you're trying to say is: PopDenZone = 'CPSE URBAN' AND (Priority_Description = 'Life Threat' OR Priority_Description = 'Urgent Medical') It's worth noting that: (x AND y) OR z is different to: x AND (y OR z)


0

What you want to do is make use of Iterate Feature Classes. That way you'll only need to have the entire model up there once. Just have the user put the Feature Classes they want to work on in the same folder or GDB, then feed that into the model. At the end of it you have two options: Use Collect Values, then feed that into the Merge. Create an empty ...


1

The problem with this statement is the parenthesis.. Compound statements need to be enclosed in a 'block': Con((Condition1) | (Condition2),True_value,False_value) The correct syntax for the field calculation is: Con(("%DEM_Aspect%" <= 90) | ("%DEM_Aspect%" >= 270),1,0)


2

It is possible to stop/start a map service with a Python code that can be built into a Python script tool in toolbox. You can then drag this tool into the ModelBuilder and embed it into the model. You can also just run the tool as is. The toolbox is called ArcGIS Server Administration Toolkit - 10.1+ which you can download. There is already a model which ...


0

This might be a bit late. But if your are running into similar problems this can be useful: If you are using Dropbox, try stopping its syncing and then quit it. Then close and reopen your ArcMap project. This worked for me.


2

The best way to handle this in ModelBuilder is to use the Iterate Feature Classes tool. It will find all the feature classes in the specified workspace (such as SDE geodatabase) and create an iterable list which you can then process with the Copy Features GP tool. The Copy Features will all the feature classes one by one, and you shouldn't care if any ...


1

The easiest way is to use "Iterate Feature Classes" tool in Model Builder. You can access it from: Insert > Iterators > Feature Classes If you want to copy all feature classes, leave WildCard and Feature Type parameters empty, and just set the Workspace.


0

You don't need a map to construct the JSON. You can make it yourself, then POST or GET to the REST service here (or at your ArcServer): http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute See my example below for drawing a basemap: "World_Topo_Map", adding a layer with Definition ...


1

Totally crazy how easy the answer is. One doesn't even need to use model builder to iterate through all possible routes. In my case, I have a feature class (points) that represents every doorway at the archaeological site (N=448 doorways). I simply pointed Network Analyst to that feature class for both Facilities and Incidents, while indicating in the ...


2

In line variable substitution is what your looking for. You can use the 'Value' output from the iterate feature selection to uniquely label the output. In the Output Feature class in the Copy Features, use the %Value% to assign a different name for each iteration. For example, set the output to [your output location]\%Value%' See ESRI's help page for more ...


0

Iterate Features is meant to iterate features (i.e. feature class) within a geodatabase or a feature dataset. You need to change the iterator and use iterate rows instead. If it still fails, please provide a better image of your model, since it is too small. Yet your work flow sounds solid, except the iterator.


0

I wouldn't use the function name 'Reclass', I think that may already be the name of an existing function. But basically, 'OR CODE Value" is not correct. It's not clear exactly what you want to do. It looks like you just want to return the same value you're passing in. You're returning the existing OR_CODE value when OR_CODE is an empty string, and it looks ...


2

Suggesting a workflow: Starting point is after the creation of Buffer B. For Buffer A use the multiple ring buffer creating two buffers. The original one and another one which is 1.5 times the distance. E.g 12 meters and 8 meters. For buffer B open a new field (float, named "expand"), and feed it with [BUFF_Distance]/2 Use intersect to create an ...


0

It looks like you should be using "Iterate Datasets" instead of "Iterate Files". I can't tell if "Iterate Datasets" requires GDB feature classes or if it will work on your current shapefiles. From esri help: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00400000001n000000.htm "Iterate Files" specifically skips datasets that are ...


0

I think what you are asking is that you want to know how you can have your output shapefile name include the tool name. I think you can accomplish this by using a model only tool called Calculate Value. (Right click in the model builder window and select model only tools then calculate value.) Here you can set the data type to string, and use a small python ...


3

Network Analyst solvers only produce temporary results files/layers. If you are running this from the model builder, you need to make sure the results are added to the display. If you are running this from a tool dialog box you need to expose it as a model parameter. See this tutorial and particularly the notes. If you are looking to generate a feature ...


1

I am not certain of the exact problem, but I have a few suggestions of things you can try: Try setting the output into a folder instead of default gdb. Double check to make sure the spatial reference files were not lost when copying form the source. Check which version of HDF file you are trying to use. According to this it may not supported, or may be a ...


0

In many ways, I am actually glad ESRI did not overhaul the entire Geoprocessing Framework and Modelbuilder with the transition to ArcGIS Pro. There are many (research) organizations who invested heavily in building giant custom models that would undoubtedly need a complete overhaul if ESRI had broken compatibility. As with the transition to Python / ...


0

Isn't it possible to right click on the resulting kmz and point it to the layer you want to dub the symbology from?


0

What you are asking can be achieved in model builder, you need to create a sub-model. Also your current logic fails as you end up overwriting everything. I discuss that later. The scenario as you describe is this: So your master model would be this: The Sub model would be this: Iterate Features must have recursive ticked on to get to the ...


3

This works for me. Are you trying to drag it from the Project Pane (either Folder or toolbox node) into Modelbuilder? Either make a connection to the folder the TBX lives in, or from the Toolbox node, right click and add toolbox pointing to your existing tool. If you're trying to drag from ArcMap to Pro, this wont work.


1

If you look at the help file for any tool, there is a section called Environments and this lists the environment settings that particular tool honours. Add Join honours "Qualified Field Names". So if you un-tick this then the table name should be dropped from the field name. I know that the Copy Features tool also honours this setting. You should get into ...


2

Think you have to modify the model environment variable for fields not to use qualified field names...I don't remember doing that in a model but in principle it is the equivalent of turning 'off' (setting to false) with arcpy.env.qualifiedFieldNames = False, see this: http://desktop.arcgis.com/en/desktop/latest/tools/environments/qualified-field-names.htm ...


3

You could use the Append tool to add your intersect_result to a feature class. First, I would create an empty feature class to store your outputs in, then just add the append tool to your model after your Intersect completes. Make the empty feature class the Target dataset and the intersect_result the input dataset. You can save yourself some trouble ...


0

Problem solved. I closed the program restarted my computer and deleted these stange tables with the "existing lock". Everything is working fine.


1

The Calculate Field tool works for only one field at a time. You'll need to connect another Calculate Field at the end of that model. Repeat for every field you need to calculate.


0

I by mistake gave that answer to an old thread. So copied it here. Trying to find the thread I found this ESRI code for field calculator that iterate to find the right buffer for each polygon. Code attached in the end, and there is a link to the page. Note that this answer is un-related to the code below (but I worked to hard to make it, so I leave it here ...


4

Keep using the 'Iterate Feature Classes' iterator as this is the correct one to use. Ensure you use in-line variable substitution when naming the output from the IDW tool. If you don't, each time the tool is ran it will use the same output path/name and overwrite the previous output. See my example below:


7

I wouldn't do this, especially not with some home-brewed license "server". If you're certain your IP is valuable enough to protect by licensing, you should purchase a commercial licensing solution. But I don't think this is necessarily the best solution as any form of DRM only inconveniences legitimate users and will not stop determined people reverse ...


1

I figured out a simple way to do this in model builder. Lets say you're are iterating over a few files to do a clip to all of them. 1) Create an interator for feature classes. Right click on it and make a variable for the workspace. 2) Rename the workspace bubble to "Workspace", and also right click on it and select "make parameter". This will prompt you ...


2

You could use the Python parser in the Field Calculator and construct this function. This part goes in the pre-logic. Make sure to replace the feature classes with the one from your system. The feature class table called "Temp_Table" is a temporary table and must reside in a geodatabase. It will be deleted as the script completes. def normNum(num): ...


3

Using Python would open up some more elegant solutions, but you can do this entirely in ModelBuilder with the use of a couple of temporary tables. The model would look something like this (note that you can right-click on any process step and rename it): The Add Field operation adds a new column called [Normalized_Value] to your existing polygon table. A ...


1

You could do something like this... [Field2] = (( [Field1] - 0.24 ) / ( 2546 - 0.24 )) Basically you have to find the difference between the [Field1] value and the minimum value and then divide it by the entire range of data. normalized = (value - minimum) / (maximum - minimum)


2

Create a Model Parameter. Here is a tutorial.


0

Thank you very much for your rapid reply. In fact, by deleting rows 1, 2, 4, 5 and 6, I want the row 3 to become the first row (headline) of the table (i.e., Au, Pt, pd, SiO2...). The latter contains 150 rows of data below the 6 first rows, that begins with #59101 in the provided example. Thus, I do not want to keep just the row 3, but realy deleting the ...


1

I suggest few modification to your model and it should work, but in general you are on the right way. My data (hopefully as yours) include: Dealers point feature class and Sales point feature class. Each sale row has a dealer ID which relates the sale to its dealer. My modifications are: I used the Iterate by Row. Iterate by feature iterates through ...


0

If you want to extract just row 3 and want to keep using ModelBuilder then you'll be wanting something like this: Create a model with your DBF as one of the inputs Use the Make Query Table tool or the Select Layer By Attributes tool with the query "\"COLUMN_A\" = 'Analyte Symbol'" (Substitute the real attribute name for COLUMN_A) Optional: Use Copy Rows to ...


1

It sounds like you want to do something like this: for SubFolder in MainFolder: for raster in SubFolder: run Model This is the sort of thing that is possible with model builder, specifically with the Iterate Rasters tool. Put that into your model, set Recursive to TRUE and your input to your parent folder. You might have to modify your model with ...


0

I'm not sure if there's anything wrong with the text of the query itself, but, to avoid ModelBuilder freaking out on you, you'll need to set catid as a prerequisite to the Make Query Layer step. If you set up a query or other operation in ModelBuilder that is dependent on a variable generated within the model itself, ModelBuilder will usually try to ...


0

Have you considered putting your parameters in a table or list? Then you could insert an iterator into the model and iterate through the years. As for format of the table, DBF would probably work best, but CSV's still play well with Arc and are far easier to edit, so it's a question of preference. On a side note, the parameters as you have described them ...


0

Try refreshing the toolbox. The F5 key will refresh it, or you can right-click on it and select 'refresh.' That should update the contents of the toolbox to show your model saved under its new name.


1

I believe this is the solution to the issue of "stacking" layers or raster bands for multiple images. This model is set up using standard NAIP imagery so red=1, green=2, blue=3, NIR=4. In this example, I am taking only the three color bands from the original image--combining them--then converting the format to PNG. My model uses the same concept as the first ...



Top 50 recent answers are included