4.3. Decoding a Graphics File: an Example

The following example shows you the following:

Figure 4.2:  Example Display of a Graphics File

Example Display of a Graphics File

4.3.1. The Example Command Stream

To create the graphics display shown in Figure 4.2: Example Display of a Graphics File, you would issue the following ANSYS commands:

/PREP7
/TITLE, ANSYS 5.3 Example Graphics File
N,1,1
N,2,2
NGEN,2,2,1,2,1,,1
ET,1,42
E,1,2,4,3
/PNUM,ELEM,1
/PNUM,NODE,1
/SHR,.1
/SHOW,F33
EPLOT
FINISH

4.3.2. Example Graphics File Contents

The commands listed above produce the display shown in Figure 4.2: Example Display of a Graphics File and the following graphics file:

(BBAAA2A0AAAAAAPPPLPO&#60AA&#62AP$MEKLKBAJANSYS 5.3$MEKLEFALNOV 16 1996$MEK
KOJAI15:57:07$MEKKIMAMPLOT NO.   1$MEKKDAAIELEMENTS$MEKJNEAIELEM NUM2
B0AAAAAALPOLPO&#60AB/PP+EBBBHBBHKOGBBHKOGKOGBBHKOG$FPPFPPAB1$AILAILAB1$L
HCAILAB2$LHCLHCAB4$AILLHCAB32A0AAAAAAPPPLPO.AAAAAA-LPOAAA-LPOLPO-AAAL
PO-AAAAAA>AB$ABLLKBAB1>AP$MEKJBLAGZV  =1$MEKILPAJDIST=0.55$MEKIGCAIXF
  =1.5$MEKIAGAIYF  =0.5$MEKHKKAPCENTROID HIDDEN$ABOABOCA ANSYS 5.3 Ex
ample Graphics File)

The decoded plot directives are:

(BBAAA
Start-Plot: /ERASE, raster mode
2A
Text-Size: Default
0AAAAAAPPPLPO
Window: 0.0 4095,3070
&#60AA
Area-Color: Black
&#62AP
Text-Color: White
$MEKLKBAJANSYS 5.3
Text: 3146 2977 "ANSYS 5.3"
$MEKLEFALNOV 16 1996
Text: 3146 2885 "NOV 15 1996"
$MEKKOJAI15:57:07
Text: 3146 2793 "15:57:07"
$MEKKIMAMPLOT NO.   1
Text: 3146 2700 "PLOT NO. 1"
$MEKKDAAIELEMENTS
Text: 3146 2608 "ELEMENTS"
$MEKJNEAIELEM NUM
Text: 3146 2516 "ELEM NUM"
2B
Text-Size: Small
0AAAAAALPOLPO
Window: 0 0 3070 3070
&#60AB
Area-Color: Cyan
/PP
Normal: 255
+EBBBHBBHKOGBBHKOGKOGBBHKOG
Polygon: 279, 279, 2790, 279 2790, 2790 279, 2790
$FPPFPPAB1
Text: 1535 1535 "1"
$AILAILAB1
Text: 139 139 "1"
$LHCAILAB2
Text: 2930 139 "2"
$LHCLHCAB4
Text: 2930 2930 "4"
$AILLHCAB3
Text: 139 2930 "3"
2A
Text-Size: Default
0AAAAAAPPPLPO
Window: 0,0 4095,3070
.AAAAAA
Move: 0,0
-LPOAAA
Draw: 3070,0
-LPOLPO
Draw: 3070,3070
-AAALPO
Draw: 0,3070
-AAAAAA
Draw: 0,0
>AB
Text-Color: Cyan
$ABLLKBAB1
Text: 27 2977 "1"
>AP
Text Color: White
$MEKJBLAGZV  =1
Text: 3146 2331 "ZV =1"
$MEKILPAJDIST=0.55
Text: 3146 2239 "DIST=0.55"
$MEKIGCAIXF=1.5
Text: 3146 2146 "XF =1.5"
$MEKIAGAIYF  =0.5
Text: 3146 2054 "YF =0.5"
$MEKHKKAPCENTROID
 HIDDEN
Text: 3146 1962 "CENTROID HIDDEN"
$ABOABOCA ANSYS 5.3
 Example Graphics File
Text: 30 30 "ANSYS 5.3 Example Graphics File"
)
End-Plot
 No-Op

Release 18.2 - © ANSYS, Inc. All rights reserved.