The OnFileNewDialog event notifies the client when the end-user executes the New or Create Drawing View command to create a new file.
Name | Type | Description |
TemplateDir | String | The default template directory as defined in the File tab of the Application Options dialog. This information can be used by the client in their dialog to allow the end-user to select one of the standard templates. |
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. |
TemplateFileName | String | The full filename of the file to use as the template when creating the new file. This can be any existing file and is not restricted to the files within the default template path. This argument must be set if the HandlingCode is set to kEventHandled. |
Context | NameValueMap | Input object that can be used to determine the context of why the event fired. No context information is provided for this event. |
HandlingCode | HandlingCodeEnum | Output that indicates how you are handling the event. Can supply any of the following three values:
|