ArcGIS Pro - Model Builder Help

1006
12
03-24-2020 08:56 PM
RickeyFight
MVP Regular Contributor

So below is what I was asked to calculate. I thought summarize within would cut it but it will not. 

This needs to happen for all 6000+ buildings in my city. 

Drew Flater

Thanks!

0 Kudos
12 Replies
DanPatterson_Retired
MVP Emeritus

The submodel requirement

Iterators—ArcGIS Pro | Documentation 

EDIT

Did you now remove the 2 iterator issue from your original question??

0 Kudos
RickeyFight
MVP Regular Contributor

Dan Patterson‌  Yes I did   I have a second iterator but I am having issues with the whole thing not just the iterator part so I removed it from the question. 

0 Kudos
RickeyFight
MVP Regular Contributor

This is what I have so far I keep getting caught on calculate field. 

0 Kudos
DanPatterson_Retired
MVP Emeritus

pretty sketchy examples for calculate field in modelbuilder

Examples of using ModelBuilder utilities—Tools | Documentation 

If using pro, there is the warning about significant changes to it

ModelBuilder: migration to ArcGIS Pro—ArcGIS Pro | Documentation 

I dont use modelbuilder... maybe Curtis Price‌ will be of some help

0 Kudos
RickeyFight
MVP Regular Contributor

Dan Patterson

Thanks I will look at those. I think the hard part is that it is joining a field before calculate field.  I have to put in the parameters before the model gets run

0 Kudos
curtvprice
MVP Esteemed Contributor

This is quite a puzzle. Where are you doing the summarize to total up the scores?

0 Kudos
RickeyFight
MVP Regular Contributor

I have not gotten to that yet I am just trying to get part of the model working.

I might have found a work around.  I am going to make a near table. run the y= 124.8 e^(-0.05x) equation then sum all of them. After that I will multiply by the structure score.  This should just bypass the whole model.  I will post here if it does.

Near table. 

0 Kudos
curtvprice
MVP Esteemed Contributor

That was my solution!

0 Kudos
curtvprice
MVP Esteemed Contributor

Darn I didn't realize, you can do this in one run!  That is a lot less complicated.

Though I tried this with polygons and it uses actual boundaries, not centroids. So neighbors have a distance of zero. So, depending on how you want to count neighbor distance, you may want to convert the polys to centroid points and run the Generate Near Table on the points.