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.
Name | Value | Valid when inserting |
---|---|---|
Embed | Boolean | .xls, .xlsx, all image files |
DesignViewRepresentation | String | .iam |
DesignViewAssociative | Boolean | .iam |
PrivateRepresentationFileName | String | .iam |
PositionalRepresentation | String | .iam |
ModelState | String | .iam;.ipt |
InteractiveiMates | Boolean | .ipt,.iam |
AutomaticiMates | Boolean | .ipt,.iam |
Name | Type | Description |
FileTypes | String | A list of the file types displayed in the 'Files of Type' combo box on the Open dialog. For example, when the Derived Component command is executed the array contains the following three strings: "Component Files (*.ipt, *.iam)|*.ipt; *.iam" "Part Files (*.ipt)|*.ipt" "Assembly Files (*.iam)|*.iam" |
DocumentObject | Document | The object the file will be inserted into. For example, if the Place Component command is invoked, this will be the assembly the component will be inserted into. |
ParentHWND | Long | The Windows handle of the Inventor Application window. If the client displays their own dialog they can use this to associate their dialog to the Inventor window. This results in better behavior between the client dialog and Inventor. For example, the client window will stay on top of Inventor and if the Inventor window is collapsed the client dialog will also be collapsed. |
FileName | String | The full filename that the client returns to Inventor if they choose to override Inventor's standard behavior and obtain the filename themselves. In order for this filename to be used the client must also return kEventHandled as the handling code. Multiple files are also supported where the file names are delimited with the "|" character. For example:
|
RelativeFileName | String | Not used. |
LibraryName | String | Not used. |
CustomLogicalName | Byte | An array of Bytes that can be used by data management systems as a way to associate additional information with a file reference. During file resolution, the data management system can use this information to help look up the file within the data management system. Supplying an array of bytes for this event will associate this custom logical name with the reference created to the document being inserted. If a reference already exists for this document, the existing custom logical name will be replaced by this one. |
Context | NameValueMap | Input object that can be used to determine the context of why the event fired. Additional information is provided through this argument to help in understanding the context of the notification. See the Remarks section for valid NameValueMap values. |
HandlingCode | HandlingCodeEnum | Output that indicates how you are handling the event. The following three values are supportd:
|