TAGGED: apdl, export, image, image-resolution, mechanical-apdl
-
-
September 30, 2021 at 12:36 pm
gryphus
SubscriberHi,
I am trying to export images in APDL.
So far I found two solutions to do so:
Using the /IMAGE command:
This way I can specify the path where the image is stored but not the resolution (/GFILE, 2400 does not seem to have an impact)
Using /SHOW,PNG and plotting to png format:
This way I can specify the resolution by /GFILE but I can't change the save path.
Is there a way to achieve both?
October 1, 2021 at 9:37 amgryphus
SubscriberI think I found a solution to my problem:
The /SHOW command has an option to specify a filename.
So the solution is something like
/SHOW,FILENAME,PNG
October 3, 2021 at 3:12 pmgryphus
SubscriberMy solution did not actually work.
The png files produced by /SHOW,FILENAME,PNG seem to be corrupted somehow.
So if anybody has another solution please share it with me.
January 4, 2022 at 10:28 pmmrife
Ansys EmployeeCan you show us all of the commands used to generate the PNG file. Often reverting back to the terminal and redoing the plot will help here; or the Close option in /SHOW (purging the graphics buffer). So let's say you wanted an element plot:
EPLOT
/SHOW,MyElementPlot,png
eplot
/show,close
/show,term
/rep
If doing the above can you then open MeElementPlot.png ?
mike
October 17, 2022 at 7:07 amVignesh Saravanan
SubscriberThe complete set of commands are mandatory to plot the images. The same can be used in batch runs too..
- For plotting elements and models
- For plotting results (nodal solution plots)
Â
For plotting elements and model:
/SHOW,PNG,,0
PNGR,COMP,1,-1 Â
PNGR,ORIENT,HORIZ Â Â
PNGR,COLOR,2
PNGR,TMOD,1Â
/GFILE,800,Â
!* Â
/CMAP,_TEMPCMAP_,CMP,,SAVE Â
/RGB,INDEX,100,100,100,0
/RGB,INDEX,0,0,0,15Â
/REPLOTÂ
/CMAP,_TEMPCMAP_,CMP
/DELETE,_TEMPCMAP_,CMP Â
/SHOW,CLOSEÂ
/DEVICE,VECTOR,0
!* ÂÂ
For Plotting nodal results:
/RGB,INDEX,100,100,100, 0 Â Â
/RGB,INDEX, 80, 80, 80,13 Â Â
/RGB,INDEX, 60, 60, 60,14 Â Â
/RGB,INDEX, 0, 0, 0,15 Â
/SHOW,PNG,,0
PNGR,COMP,1,-1 Â
PNGR,ORIENT,HORIZ Â Â
PNGR,COLOR,2
PNGR,TMOD,1Â
/GFILE,800,Â
!* Â
/REPLOTÂ
/SHOW,CLOSEÂ
/DEVICE,VECTOR,0
!* ÂÂ
Have a Great day?
Viewing 4 reply threads- The topic ‘How to export high resolution images in APDL’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3024
-
971
-
857
-
830
-
777
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-