FileUIEvents.OnPopulateFileMetadata Event

Parent Object: FileUIEvents

Description

Event that fires when file names and properties are being generated by a command.

Remarks

By responding to this event, clients can override the file names and properties of Inventor files being generated by the command.

Syntax

FileUIEvents.OnPopulateFileMetadata( FileMetadataObjects As ObjectsEnumerator, Formulae As String, Context As NameValueMap, HandlingCode As HandlingCodeEnum )

Parameters

Name Type Description
FileMetadataObjects ObjectsEnumerator Input ObjectsEnumerator that contains FileMetadata objects with the proposed file names and properties. The input enumerator contains one FileMetadata object for every file being generated. The properties of the FileMetadata objects can be set to the desired values.
Formulae String Input String that specifies XML-based formulae for generating file name, display name and file properties. This can be a null string.
Context NameValueMap Input/output NameValueMap object that can be used to determine the context of why the event fired.
HandlingCode HandlingCodeEnum Output HandlingCodeEnum that indicates how you are handling the event: * kEventNotHandled: Inventor continues with its standard behavior and displays the file-naming dialog to the end-user. * kEventHandled: Indicates that the client has specified file names and/or properties for the files and Inventor should use these to display in its dialog to the user. * kEventCanceled: This code is return as a signal that an unexpected failure has occurred

Version

Introduced in version 2009