ModelBuilder (Pro) field calculator and %value%

814
2
04-12-2018 07:15 AM
SzymonChmielewski
New Contributor

Hello

I am moving my Model Builder from ArcMap to ArcGIS Pro (2.1.2). The problem is that Pro does not use VISUAL BASIC (VB) anymore. The command written in VB now has to be translated into Python 3 or Arcade.  Could you please advise me how VB command   %value%   should be written in Python 3 or Arcade.

Basically, I am trying to count the number of visible Lines of Sight constructed from a vantage point (done, the n_T value in my Model Builder) and “paste” this value as integer to the attribute table of point layer (INDEX field); in other words, the attribute of point layer is the count of Lines of Sight. I attach my old MB with original VB command.

Thank you in advance for your help.

Szymon

0 Kudos
2 Replies
BalajiVeera
Occasional Contributor

Use same syntax for variable values %value%, either Python 3 or Arcade

SzymonChmielewski
New Contributor

Thanks, Balaji, it really works.

0 Kudos