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) and am scared to run a while loop without knowing what the forward iteration really is!
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