Message 1 of 1
Which file is being saved?

Not applicable
11-27-2015
06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys, I'm trying to figure out which file is being saved when I use the FileUIEvents.OnFileSaveAsDialog
this captures the SaveAs window, the code looks like this (C#)
private void FileUIEvents_OnFileSaveAsDialog(ref string[] FileTypes, bool SaveCopyAs, int ParentHWND, out string FileName, NameValueMap Context, out HandlingCodeEnum HandlingCode) { Document DocumentObject = (Inventor.Document)Context.Value["TopLevelDocument"]; FileName = DocumentObject.FullFileName; HandlingCode = HandlingCodeEnum.kEventHandled; }
The DocumentObject always returns the topmost document, which is the top assembly, never the part that needs to be saved
The FileName is an out string, so it is 'null' when the event is fired.
Anyone have an idea how to catch the actual document that triggers the event?