How to get number of cast units in rebar row of my template
Question:
I have a template which I use in multidrawing to output number of rebars in all identical cast units. Template has the following structure:
CAST UNIT
PART
REBAR
I have used a value field with GetValue("MODEL_TOTAL") in CAST UNIT row to calculate the number of identical cast units, and I want to copy that value to REBAR row with CopyField() function and to multiply it with number of rebars in one cast unit (GetValue("NUMBER")). This is not working and I am not able to get correct values for number of cast units in the rebar row.
Answer:
There are limitations in the use of CopyField() function when you are trying to copy value from a higher level row (CAST_UNIT) to lower level row (REBAR).
When you use a value field with GetValue("PART.CAST_UNIT.MODEL_TOTAL") in the REBAR row, you can get the correct number of cast units.