Void MechanicalGraphicsWrapper.ExportViewportChart(Int32 viewportIndex, String filePath, Int32 width, Int32 height, GraphicsImageExportFormat formatImage)

Exports the specified viewport's chart to file.

Parameters

  • viewportIndex
    Type: Int32
    An integer specifying the viewport. Valid values range from -1 to 3, depending the amount of viewports open. When two viewports are open side-by-side (horizontally), 0 refers to the left viewport and 1 refers to the right viewport. When two viewports are open and stacked (vertically), 0 refers to the top viewport and 1 refers to the bottom viewport. When four viewports are open, 0 refers to the top-left viewport, 1 refers to the top-right viewport, 2 refers to the bottom-left viewport and 3 refers to the bottom-right viewport. When -1 is passed in, the image is taken from the active viewport.
  • filePath
    Type: String
    The output image's file path. Non-existent directories will be created and pre-existing files will be overwritten.
  • width
    Type: Int32
  • height
    Type: Int32
  • formatImage
    The 2D image format to use when exporting.