I have created a model that converts a feature class of regions into the proper format for exporting to Tableau. The only problem I am having is on the last step. There needs to be a draw order field for each polygon (which has been converted to points using the Feature Vertices to Points tool). So each polygon has a FID field, and an ORIG_FID field with a specific number for each polygon. I was thinking of some sort of submodel in my model with iterator and calculate field that takes the FID for each polygon and subtracts 1 from it to create a draw order that starts with 0 (Tableau requires it). so if the first polygon had 10 vertices with FIDs of 1,2,3,4,5,6,7,8,9,10.... every row's ORIG_FID would be 0. The second polygon of 10 vertices would have the FIDs of 11,12,13,14,15,16,17,18,19,20 and the ORIG_FID of 1 for the ten rows.
I am trying to figure out what I need to tack on to the end of my model to create this field... any help?