Method: ExportToImage for 3DAxisSystem

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 Help

Exports a 3D axis system from DIAdem REPORT to a graphics file.

Object.ExportToImage(FileName, ImageType)
Object3DAxisSystem
Object with this method
FileNameString
Specifies the path and the filename of the graphics file.
ImageTypeSpecifies the graphics file type.
Enumeration with the following selection terms:
1 eImageExportTypeEMFEMF file
2 eImageExportTypePNGPNG file
3 eImageExportTypeJPGJPG file
4 eImageExportTypeGIFGIF file
5 eImageExportTypeTIFTIF file

The following example exports each 3D axis system to a graphics file:

Dim oMyReportObj, oMyReportObjects, i
Report.Settings.ImageExport.PNG.BitsPerPixel = ePNGBitsPerPixelRGB24
Report.Settings.ImageExport.PNG.Height = 300
Report.Settings.ImageExport.PNG.UseRatio = True
i = 0
Set oMyReportObjects = Report.ActiveSheet.Objects
For Each oMyReportObj in oMyReportObjects
  If oMyReportObj.ObjectType = eReportObject3DAxisSystem Then
    Call oMyReportObj.ExportToImage(LayoutWritePath & "MyExportFile" & i, eImageExportTypePNG)
    i = i+1
  End If
Next

WAS THIS ARTICLE HELPFUL?

Not Helpful