Loop While node implementation


#1

<div style=“color: #222222;”>Hi!</div>
<div style=“color: #222222;”></div>
<div style=“color: #222222;”>I’m new at dynamo and i’m having a bit of trouble implementing the loop while node. I’ve looked up the forum for everything related to this node but still can’t get this to work.</div>
<div style=“color: #222222;”></div>
<div style=“color: #222222;”>I’m trying to develop a function that imports text from a Revit General Annotation object, looks up the translation on a custom “dictionary” developed by the user (Excel file), and then writes back the translated text in another field of the Annotation.</div>
<div style=“color: #222222;”></div>
<div style=“color: #222222;”>I’ve managed to get everything to work except the loop part. The capture I’m posting is from a simplified version of this function where I’m just trying to write a constant value “Z” while going through the list of all the imported Annotative objects. The loop should increment the “index” value each time it runs (highlighted in red at the capture).</div>
<div style=“color: #222222;”></div>
<div style=“color: #222222;”>any help is appreciated! Thanks</div>
<div style=“color: #222222;”></div>
<div style=“color: #222222;”>Capture</div>