Select to view content in your preferred language

How to write values into a feature class using model builder?

292
1
04-02-2020 04:23 AM
VikshutMundkur
New Contributor

Hi,

I have got 4 values as outputs using model builder (using the model only tools "get field value" and "calculate value"). I now need to store those values into a feature class containing the corresponding 4 fields. How can I go about this? Here's a snapshot of where I am now.

Tags (1)
0 Kudos
1 Reply
curtvprice
MVP Esteemed Contributor

If this is a feature class with a single row and you want to add these four field values, the simplest way is four Calculate Field runs that populate these values one by one.

If these are for a particular row, it gets more complicated and the easiest way would be to write a Python function that uses arcpy.da.UpdateCursor to select the row you want and update values in the table.