Saves the current view to the specified image file. The view is re-rendered to the specified size and not just scaled from the existing view. This allows you to generate higher resolution images than you could do with just a screen capture.
"viewport_var" is a variable referencing a Viewport object. |
"viewport_var" is a variable referencing a Viewport object. |
"viewport_var" is a variable referencing a Viewport object. |
| Type | Description |
| boolean | Returns true if the operation was successful. |
| Name | Type | Description |
| filename | string | The full filename, including the path, of the image file. The type of image file to be created is inferred from the extension of the filename. |
| width | integer | The width in pixels of the output image. A value of zero indicates that the current width of the viewport is to be used. |
| height | integer | The height in pixels of the output image. A value of zero indicates that the current height of the viewport is to be used. |
| Name | Description |
| Create Animation API Sample | Creates a series of images while a design parameter changes. You can assemble the images into an animation in other software. Before running: Open a part that contains a user or model parameter named |