- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @amirandaL4VAC. I'm just going to make a wild guess here, because the code looks fairly normal to me. One of the most common issues I see is with wrong document reference that the start of a rule, or there being multiple documents being referenced within the rule, without the user knowing that it is going on. Using the term 'ThisApplication.ActiveDocument' can be tricky at times, for different reasons. I usually recommend that folks switch to using 'ThisDoc.Document' in that position within their iLogic rules, especially if those rules will be used in the Event Triggers. If the code is being ran from the Event Triggers, then another document may technically be the 'active' one when it gets triggered, that therefore the code would be trying to work on that other document. I don't know if this is the problem here or not, just a guess.
Wesley Crihfield
(Not an Autodesk Employee)