Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Where can I find examples for settings for ExtAPI.Graphics.ExportImage?

TAGGED: ,

    • Feebletom
      Subscriber
      I want to create a button that exports the current screen with a white background and at high resolution. nIt looks like GraphicsImageExportSettings.Background(white) is the correct syntax but I don't know how to make this work with ExtAPI.Graphics.ExportImage. The ACT API Reference Guide wasn't much help.nAlso, is it possible to change the scale, via coding, prior to exporting the image?nThank you.n
    • Feebletom
      Subscriber
      I found this in the Ansys help but can't get it to work:n#export model to AVZ file with white backgroundnsetting3d = Ansys.Mechanical.Graphics.Graphics3DExportSettings()nsetting3d.Background = GraphicsBackgroundType.WhitenGraphics.Export3D(c:\\avz_white.avz, Graphics3DExportFormat.AVZ, setting3d)nn#export image with enhanced resolution to PNG filensetting2d = Ansys.Mechanical.Graphics.GraphicsImageExportSettings()nsetting2d.Resolution = GraphicsResolutionType.EnhancedResolutionnGraphics.ExportImage(c:\\temp\\image_enhancement.png, GraphicsImageExportFormat.PNG, setting2d)n
    • Feebletom
      Subscriber
      Ok, I got the white background to apply to the viewer files .nImage files save to the correct folder but they're low quality. I tried high quality as well but it has no effect. Is there something I'm missing with the resolution? The script runs just fine but the resolution is not adjusting. n
Viewing 2 reply threads
  • The topic ‘Where can I find examples for settings for ExtAPI.Graphics.ExportImage?’ is closed to new replies.
[bingo_chatbox]