Message 1 of 1
Run iLogic Event trigger after Application Event

Not applicable
11-17-2015
05:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I'm wondering whether it is possible to run the iLogic Event Triggers after the ApplicationEvent.OnDocumentChange steals it.
Currently only my custom OnDocumentChange Event runs and it ignores the iLogic trigger, which is logical I think, because it already deals with the event.
Still it would be nice to add some iLogic rules with triggers that run anyways, perhaps through a workaround?
I've tried to set the HandlingCode to HandlingCodeEnum.kEventHandled, and kEventNotHandled and kEventCanceled,
but it doesn't allow the iLogic Event Trigger to run.
Little bit of the code... (This is C#)
private void AppEvents_OnDocumentChange(_Document DocumentObject, EventTimingEnum BeforeOrAfter, CommandTypesEnum ReasonsForChange, NameValueMap Context, out HandlingCodeEnum HandlingCode) { //MessageBox.Show(ReasonsForChange.ToString()); if (BeforeOrAfter == EventTimingEnum.kAfter) { if (ReasonsForChange.ToString() == "10" || ReasonsForChange == CommandTypesEnum.kFilePropertyEditCmdType) { if (DocumentObject.DocumentType == DocumentTypeEnum.kPartDocumentObject) { MessageBox.Show(DocumentObject.DisplayName + " | iProperty Changed"); } else if (DocumentObject.DocumentType == DocumentTypeEnum.kDrawingDocumentObject) { MessageBox.Show(DocumentObject.DisplayName + " | iProperty Changed"); } } } HandlingCode = HandlingCodeEnum.kEventNotHandled; }