# ForwardIterator Method

**URL:** <https://forum.dynamobim.com/t/forwarditerator-method/17550>\
**Category:** Lists-Logic\
**Tags:** python\
**Created:** [December 20, 2017, 6:51am UTC](https://forum.dynamobim.com/t/forwarditerator-method/17550 "2017-12-20T06:51:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![haganjake2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/haganjake2/32/119069_2.png) [@haganjake2](https://forum.dynamobim.com/u/haganjake2)\
**Post date:** [June 17, 2022, 9:23am UTC](https://forum.dynamobim.com/t/forwarditerator-method/17550/2 "2022-06-17T09:23:25Z")

</div>

Any forward iterator know it all’s able to answer this?

Trying to decipher the code on this page ([Set parameter of multiple family types in .RFA-file with python - #2 by blsalvio](https://forum.dynamobim.com/t/set-parameter-of-multiple-family-types-in-rfa-file-with-python/60486/2)) and am scared to run a while loop without knowing what the forward iteration really is!

```auto
import clr
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *

clr.AddReference("RevitServices")
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

param_values = list()
types = doc.FamilyManager.Types
famMan = doc.FamilyManager

TransactionManager.Instance.EnsureInTransaction(doc)

familyTypesItor = famMan.Types.ForwardIterator()
familyTypesItor.Reset()

while (familyTypesItor.MoveNext()):
    familyType = familyTypesItor.Current
    familyParam = famMan.get_Parameter(IN[0])
    param_values.append(familyType.AsString(familyParam))
    famMan.CurrentType = familyType
    famMan.Set(familyParam, IN[1] + familyType.AsString(familyParam))

TransactionManager.Instance.TransactionTaskDone()

OUT = param_values

```

Thanks,  
Jake

---

_[View the full topic](https://forum.dynamobim.com/t/forwarditerator-method/17550)._
