Show column totals of tables schedule

Hi, someone could help me with my code
works correctly but when I want to generate the totals in the “Concrete(m3)” column it does not generate anything
I would like to know if the ScheduleFieldDisplayType method call is well structured.

Try not to split topics. Your original topic was asking about how to do this, so it’s completely within the scope of the original question to ask how to fix it or get it working.

The property of the field is DisplayType, which takes an argument of one of the ScheduleFieldDisplayType enumerables. So it should look like this:

schedule_field.DisplayType = ScheduleFieldDisplayType.Totals

Hi, thanks for replying
still does not change the value to “calculate totals”.

That looks to be the same code you had before. You’re using ScheduleFieldDisplayType in both locations but that’s not correct. The property is just DisplayType.

You can check this by returning schedule_field.DisplayType to see the current selection since it’s a get/set property.