Related posts:
https://forums.autodesk.com/t5/inventor-forum/add-if-and-then-to-this-drawing-sheet-naming-ilogic-co...
https://forums.autodesk.com/t5/inventor-customization/ilogic-rule-object-reference-not-set-to-an-ins...
Idea: Capture iLogic Drawing Annotation Code Directly from Object