|
|
|
|
Specific Search Results Below:
|
| |
|
GRPH2SVG
|
| |
Sheldon Imaoka (ANSYS, Inc.)
|
| |
This is a quick hack I did to generate SVG files from within ANSYS. There are 3 macros contained in the zip file: GRPH2SVG.MAC is the main one, and the other two are called by GRPH2SVG.The macro redirects the plot to an ANSYS Graphics file "stiplot.grph". Then, the macro parses through the GRPH file and generates an SVG file called "stiplot.svg". You can change the font, font size, etc. as you see fit from within the macro. (For details on the contents of the GRPH file, refer to the ANSYS Programmer's Guide for details.)Because this parses the GRPH file from within ANSYS, it is slow for complex plots, so I recommend using it only for XY plots — this is only meant to serve as an example of what can be done with APDL and reading the GRPH file contents. Also, I did not bother including support for raster graphics - this macro only supports vector graphics. (If you want raster graphics, use of PNG is better. SVG is really a vector graphics implementation.)
If you're running Firefox, or if you use Internet Explorer and have the Adobe SVG Viewer Plug-in, you can see a sample contour plot and sample XY plot generated from this macro.Because this was created by hand, there may be mistakes - you can let me know if you encounter any. Otherwise, instead of using this macro, you can create an EPS file and use your favorite illustration software to convert it to an SVG file.
[permalink]
|
| |
|
Average Rating: 10.0 (1 vote)
|
|
|
| |
|
|