Display a modal message box with the provided text.
"userInterface_var" is a variable referencing a UserInterface object. |
"userInterface_var" is a variable referencing a UserInterface object. |
"userInterface_var" is a variable referencing a UserInterface object. |
| Type | Description |
| DialogResults | The button pressed to dismiss the dialog is returned. |
| Name | Type | Description |
| text | string | The message text to display in the dialog. |
| title | string | If the optional title argument is provided, it sets the title for the dialog, otherwise the script or add-in name is used. This is an optional argument whose default value is "". |
| buttons | MessageBoxButtonTypes | The optional buttons array can be used to specify which buttons to display on the dialog. The first button provided is the default action. If buttons are not specified, the dialog will default to a single OK button. This is an optional argument whose default value is MessageBoxButtonTypes.OKButtonType. |
| icon | MessageBoxIconTypes | The optional icon argument can be used to specify which icon to display, otherwise the default of no icon is used. This is an optional argument whose default value is MessageBoxIconTypes.NoIconIconType. |
| Name | Description |
| Post Toolpaths API Sample | Demonstrates posting toolpaths in the active document using an NC program: import a post configuration from the post library, choose which setups or operations to include, set NC program and post parameters, and run Before running: Run from Scripts and Add-Ins with a design that contains at least one CAM setup with toolpaths. The script prompts for what to post (all setups, first setup, or first operation) and optionally opens the NC file when complete. It may offer to switch to the MANUFACTURE workspace. |