Select to view content in your preferred language

Arcgis 10.1 modelbuilder - defining a field name in a expression to be a parameter

4924
11
04-03-2013 10:04 PM
yonatanrubinstein
Deactivated User
Hello,

I was asked if the following can be done in the modelBuilder (I know it's simple in python, but I was asked specifically on the modelBuilder):

The user has a expression in the model:   str(!city_code_int!).zfill(4)  (the "city_code_int" is the field name of an "long"-type field).

he wants to put only the field name "city_code_int" as a parameter in the model (and not the entire expression).

Is it possible to do such a thing in the 10.1 Model Builder?

Thanks in Advance.
0 Kudos
11 Replies
ZacharyHart
Honored Contributor
Did you get this solved?

So what I'm hearing then is that we need to have 2 parameters exposed, correct?
0 Kudos
yonatanrubinstein
Deactivated User
Did you get this solved?

So what I'm hearing then is that we need to have 2 parameters exposed, correct?


I didn't succeed to solve this, no, so any help will be much appreciated.

yes, 2 parameters need to be exposed - one of them is supposed to be fed into a otherwise constant expression.

Thanks.
0 Kudos