3

I am using ArcGIS Desktop 10.0.

I want to show/create a buffer of a single point but the radius of that buffer depends on a simple formula (e.g. Radius = abc).

Instead of entering directly the radius, is there are way to just enter the constants on the ModelBuilder, use the result and connect it to the Buffer tool so that we can get that result?

1 Answer 1

6

It is fairly straightforward, but you may do well to read the Creating Tools With ModelBuilder help:

You might also check the help on the Calculate Value tool in ModelBuilder:

enter image description here

  1. Open ModelBuilder and add your feature class/shapefile and your buffer tool.
  2. Add the "Calculate Value" ModelBuilder function (Accessed by right clicking the model area and selecting Model Only Tools>Calculate Values).
  3. Add 3 (or however many you please) variables to your model (Insert>Create Variable) of a data type appropriate for your operation. Name these something easy and appropriate (e.g. A,B,C).
  4. Right-click these variables and enable "Model Parameter".
  5. Open the Calculate Value tool and set its expression to whatever you'd like using the variables encased in % %, as such: %A% * %B% * %C% (this will be the product of ABC).

enter image description here

  1. Connect the Calculate Value tool to the Buffer tool as the Distance unit.
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.