How to set an Event Trigger for Inventor Application NOT for a Document?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The below iLogic code part works well for assigned part or assembly document.
SyntaxEditor Code Snippet
' Set reference to active document. oDoc = ThisApplication.ActiveDocument ' Check the Document type is an assembly or part If (oDoc.DocumentType <> kAssemblyDocumentObject And _ oDoc.DocumentType <> kPartDocumentObject) Then '+ ' No need to give a message '- 'MsgBox("Error:Document type is not assembly/part") Exit Sub End If ' Get document's full file name sFname = ThisDoc.PathAndFileName(False) sDWFname = sFname & ".dwf" ' DWF sDWGname = sFname & ".dwg" ' DWG ' Do a 'Save Copy As' to DWF and DWG formats oDoc.SaveAs(sDWFname, True) oDoc.SaveAs(sDWGname, True) MessageBox.Show("*.DWF ve *.DWG dosyalari basariyla saklanmistir...", "Model - Save As DWF/DWG")
When you assign this rule via
1) Toolbar Manage --> ILogic-->Event Triggers
2) Rules Triggered By Events form, Select, After Save Document
3) Then assign the above rule,and click OK
it works fine. When you save any time, the related extentions are also saved.
But when a designer creates or open another drawing, this rule must be redefined for the new document again.
How to define such a rule for Inventor Application level to get rid of this redefinition? We want to enable *.DWF and *.DWG files being saved for
all documents, and define iLogic rule once,
.without writing additional addin,
.without trying to transfer this rule between drawings,
If there is no way to do this, this feature shoud be added to a new version of Inventor.
Thank you for any feedback