FileUIEvents Object


Description

The FileUIEvents object supports a set of events that are fired when the user is creating, inserting, opening and saving files.

Methods

Name Description
PopulateFileMetadata Method that fires the OnPopulateFileMetadata event with the input arguments and returns the values specified in the event. This method should be called just before showing the file naming dialog to the user.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
Parent Gets the parent object from whom this object can logically be reached.
Type Returns an ObjectTypeEnum indicating this object's type.

Events

Name Description
OnFileInsertDialog The OnFileInsertDialog event notifies a client whenever the end-user has executed a command that provides for the selection and insertion of a document into another document.
OnFileInsertNewDialog The OnFileInsertNewDialog event notifies the client whenever the end-user executes the Create Component command within an assembly.
OnFileNew Fires before a File New from standard template is executed.
OnFileNewDialog The OnFileNewDialog event notifies the client when the end-user executes the New or Create Drawing View command to create a new file.
OnFileOpenDialog The OnFileOpenDialog event notifies the client when the end-user executes the Open command to open an existing file. By responding to this event the client can override Inventor's standard behavior of displaying the Open dialog and provide their own interface to determine the file to open. This notification is only made in cases where the Open dialog is displayed to allow the end-user to select a file. If the end-user uses the most recently used list in the File menu to open a file the Open dialog is bypassed and the file is opened directly and because the Open dialog is not used this notification is not sent.
OnFileOpenFromMRU Fires when a file is selected from the MRU list to open.
OnFileSaveAsDialog The OnFileSaveAsDialog event notifies the client when the end-user executes the Save As or Save Copy As command to create a new file.
OnPopulateFileMetadata Event that fires when file names and properties are being generated by a command.

Accessed From

Application.FileUIEvents

Version

Introduced in version 4