0

I have a model which results in a list of routes with mileages. I want to add 6 fields to the mileage table (Freight Rate, Freight Cost, Material Amount, Material Rate, Material Cost, and Total Price). I want these 6 fields to be parameters that the user inputs prior to starting the model. The output of the table after the model with the field additions would look like below. Output after Model Completion

I've tried adding six fields with 6 add fields but I can't add numbers to a field name. Calculate value is a possibility but I can't understand how to do that. Current Model

2
  • Why would you want to add numbers to the field names? The fields names in your example screenshot do not have numbers. Commented Mar 1, 2022 at 2:00
  • You’re right. I didn’t explain that too well. I want to add the fields but then be able to populate the added fields from the interface before running the model Commented Mar 1, 2022 at 12:13

1 Answer 1

1

I added add field and calculate field. I used inline variables for the calculate field. When the field is added it goes into calculate field and the inline variable populates the calculate field. The output resulted in a price per location. Model Interface Model Attribute Table Output

1
  • 1
    It is my answer. Commented Mar 2, 2022 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.