Message 1 of 7
If Save() command is used in iLogic, Event Triggers do not work properly (bug?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I came across a problem (bug?), if I use "Save()" command in iLogic, Event Triggers do not work properly (are not executed fully - exited?).
We are using Inventor 2020.3.4.
How to simulate this problem:
- Create IPT and its IDW.
- Create an iRule:
If ThisDoc.Document.DocumentType = DocumentTypeEnum.kDrawingDocumentObject ThisDoc.ModelDocument.Save() End If MsgBox(ThisDoc.FileName(True)
- Put this iRule inside "Before Save" Event Trigger (All Documents).
- Dirty both of the files (for example change dimension on IPT and go to IDW).
- Save from IDW.
Outcome:
It will only show IDW messagebox.
Other try:
- Do the same as above, but comment the save command:
If ThisDoc.Document.DocumentType = DocumentTypeEnum.kDrawingDocumentObject 'ThisDoc.ModelDocument.Save() End If MsgBox(ThisDoc.FileName(True))
Outcome:
It will show IDW messagebox first, then Save dialog (both yes and click OK) and it will also show IPT messagebox.
Why does Save() command skip execution of further code? Error or exited or as designed?
Best regards,
Rene Repina

